support for inputs.self.submodules
flake attribute #942
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://github.com/NixOS/nix/pull/12421 introduced an
inputs.self.submodules
flake attribute that makes a flake just work if its tree imports git submodules, it's introduced as part of a generalinputs.self
flake attrset that invalidates and refetches the flake if its values override the flake fetcher's default behaviour.this change broke lix's compatibility with upstream flakes, since the
self
attrset has a different schema than other flake inputs resulting in lix throwing an exception while fetching a flake that uses it.this attribute is also -afaik- the only solution that actually works for using a flake with submodules as an input to another flake, because the
?submodules=1
query param doesn't get parsed/considered consistently.i already wrote and (manually) tested a port of Eelco's PR, and also gated
inputs.self
behind an experimental-feature. please LMK what you think of this change/addition.This issue was mentioned on Gerrit on the following CLs:
inputs.self.submodules
flake attribute")i decided to put it behind an experimental-feature flag because im one of only 18 repos using it on github, and the change feels drastic for modifying the flakes schema, so off by default felt better
FYI it's also filed here: #929
it's ready for review now