Skip to content

Proposal: check for and use system-wide Amber#8

Open
Thesola10 wants to merge 5 commits intoArjixWasTaken:mainfrom
Thesola10:check-system-amber
Open

Proposal: check for and use system-wide Amber#8
Thesola10 wants to merge 5 commits intoArjixWasTaken:mainfrom
Thesola10:check-system-amber

Conversation

@Thesola10
Copy link
Contributor

This PR lets Amethyst run amber --version on whichever version of Amber is in PATH, and if the version matches, uses it to build even if the manifest specifies an explicit version.

The check is a substring because, due to Nix sandboxing, the Amber built from the upstream Nix flake will report its version in the form amber 0.5.1-alpha-nix-eb391e2 even if built from a release tag.

@Thesola10 Thesola10 mentioned this pull request Mar 10, 2026
@ArjixWasTaken
Copy link
Owner

Good idea having it as fallback

@ArjixWasTaken
Copy link
Owner

@Thesola10 can you confirm if my changes have not broken your intended behavior?

@ArjixWasTaken
Copy link
Owner

I believe this PR should modify the nix stuff, these two lines should be redundant.

https://github.com/ArjixWasTaken/amethyst/blob/main/default.nix#L9-L10

@Thesola10
Copy link
Contributor Author

Thesola10 commented Mar 19, 2026

that's the idea, but right now these lines address the bootstrap version of Amethyst, we'd need to backport this PR to it

@Thesola10 Thesola10 marked this pull request as ready for review March 19, 2026 13:24
@ArjixWasTaken

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants