Add "submodules" as a flake attribute #929
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#929
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?
Is your feature request related to a problem? Please describe.
If a flake needs to initialize git submodules, you need to include
'.?submodules=true'
in the CLI invocation, which is a burden to remember, type and confusing for new usersDescribe the solution you'd like
Being able to define this parameter within the flake itself.
Describe alternatives you've considered
nixcpp added this feature in the 2.27.0 release:
https://discourse.nixos.org/t/nix-2-27-0-released/62003
I feel like this is a duplicate of some issue, to which the response was "that's a bad idea, it will make you fetch the entire repo twice which will take forever! plus it's in libfetchers which is extremely fragile and breakable. plus it's a flake thing! I'm sure not going to implement it but if someone sends an implementation to me with tests and it's clear it won't break anything then I'll merge it".
My guess is it was a discussion on matrix, thanks for filing a bug!
inputs.self.submodules
flake attribute #942implemented in https://gerrit.lix.systems/c/lix/+/3839
Fixed by
cl/3839
.