Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git submodules not checked out in flake project, even with '?submodules=1' in flake uri. #1353

Open
RichardWarfield opened this issue Jan 27, 2024 · 1 comment
Labels

Comments

@RichardWarfield
Copy link

RichardWarfield commented Jan 27, 2024

Describe the bug
In a flake-based project that has a git submodule, the submodule seems not to get checked out, even with '?submodules=1' in the flake URI. The build fails with "No such file or directory" on a file in the submodule.

To Reproduce
A reproducing example is proj2 here and has proj1 as a git submodule.

Create a jobset with flake URI of git+ssh://[email protected]/RichardWarfield/proj2?submodules=1

Expected behavior
The job checks out the git repo with the required submodule and builds the project successfully

Log

Running phase: unpackPhase
unpacking source archive /nix/store/cadzicaa78vyvbdy1f7r4aqv1h4fiwnf-ijhnhy852xcxdb1qd8166gs4x3l9a4r3-source
source root is ijhnhy852xcxdb1qd8166gs4x3l9a4r3-source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
cc1: fatal error: ./proj1/src/hello_world.c: No such file or directory
compilation terminated.

Hydra Server:

  • OS and version: [e.g. NixOS 24.05pre576254.ae5c332cbb58]
  • Version of Hydra:
[nix-shell:/etc/nixos]# hydra-server --version
/nix/store/pyh4fx1ak03nl96rawdka35a8y30v3pq-hydra-2023-12-24/bin/.hydra-server-wrapped
(Getopt::Long::GetOptions version 2.54; Perl version 5.38.2)
  • Version of Nix Hydra is built against: 2.19.3
  • Version of the Nix daemon
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/recommendations-for-a-simple-ci-build-server-setup/39068/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants