Skip to content

No allow import from derivation - #15

Open
UnstoppableMango wants to merge 2 commits into
mainfrom
ifd
Open

No allow import from derivation#15
UnstoppableMango wants to merge 2 commits into
mainfrom
ifd

Conversation

@UnstoppableMango

Copy link
Copy Markdown
Contributor
  • Initial vibe
  • Re-enable go cache

Copilot AI review requested due to automatic review settings July 19, 2026 00:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 = false in flake.nix.
  • Switch gomod2nix flake input from nix-community to UnstoppableMango (and update flake.lock accordingly).
  • Add allow-import-from-derivation = false to 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.

Comment thread .github/workflows/ci.yml
# 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 thread flake.nix
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
UnstoppableMango force-pushed the ifd branch 4 times, most recently from 6e5069d to 45a4836 Compare July 24, 2026 03:19
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