No allow import from derivation - #15
Open
UnstoppableMango wants to merge 2 commits into
Open
Conversation
UnstoppableMango
commented
Jul 19, 2026
Contributor
- Initial vibe
- Re-enable go cache
Contributor
There was a problem hiding this comment.
Pull request overview
Disables Nix import-from-derivation (IFD) for this flake/CI and switches the gomod2nix input to a forked source, aligning with the goal of re-enabling Go caching while avoiding IFD.
Changes:
- Set
nixConfig.allow-import-from-derivation = falseinflake.nix. - Switch
gomod2nixflake input fromnix-communitytoUnstoppableMango(and updateflake.lockaccordingly). - Add
allow-import-from-derivation = falseto the CI build job’s Nix configuration.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| flake.nix | Disables IFD via nixConfig and repoints gomod2nix to a fork. |
| flake.lock | Locks the new gomod2nix fork revision/hash. |
| .github/workflows/ci.yml | Disables IFD in the CI build job’s Nix config. |
| # Trigger Nix GC on GitHub-hosted runners when < 3GiB free; keep up to 10GiB free. | ||
| min-free = 3221225472 | ||
| max-free = 10737418240 | ||
| allow-import-from-derivation = false |
Comment on lines
17
to
20
| gomod2nix = { | ||
| url = "github:nix-community/gomod2nix"; | ||
| # url = "github:nix-community/gomod2nix"; | ||
| url = "github:UnstoppableMango/gomod2nix?ref=main"; | ||
| inputs.nixpkgs.follows = "nixpkgs"; |
UnstoppableMango
force-pushed
the
ifd
branch
4 times, most recently
from
July 24, 2026 03:19
6e5069d to
45a4836
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.