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

Build without recursive-nix #67

Merged
merged 4 commits into from Dec 27, 2021
Merged

Build without recursive-nix #67

merged 4 commits into from Dec 27, 2021

Conversation

veehaitch
Copy link
Member

@veehaitch veehaitch commented Dec 25, 2021

Refactor the code to allow building without recursive-nix:

  • The Rust integration tests which require recursive-nix are guarded by a feature flag which is enabled by default (to still run them by just executing cargo test).
  • nix build disables the recursive-nix feature flag. This allows using ragenix without a system with recursive-nix support. nix flake check will build ragenix (again) and run all tests.
  • Building and checking are two separate CI workflows now. The former uses a Nix without recursive-nix while the latter uses a Nix installation with the recursive-nix feature enabled. Only the check workflow requires recursive-nix.
  • macOS fails to run the recursive-nix checks. I'm not sure what's the reason but it is probably an upstream bug. Therefore, I moved the respective checks to the Linux check outputs. We can revert the commit as soon as this is addressed.

Fixes #65

@veehaitch veehaitch force-pushed the recursive-nix-65 branch 3 times, most recently from 7309e1c to 3786463 Compare December 25, 2021 15:11
@veehaitch veehaitch marked this pull request as ready for review December 25, 2021 15:25
@veehaitch veehaitch closed this Dec 25, 2021
@veehaitch veehaitch reopened this Dec 25, 2021
@veehaitch
Copy link
Member Author

GitHub stills seems to schedule the old workflow. I think we can just ignore that.

vtuan10
vtuan10 previously approved these changes Dec 27, 2021
The `recursive-nix` feature seems broken on macOS. We should revert this
commit as soon as this issue is resolved. At last, `recursive-nix` is an
experimental feature.
@veehaitch
Copy link
Member Author

Rebased.

@veehaitch veehaitch merged commit 84aa4df into main Dec 27, 2021
@veehaitch veehaitch deleted the recursive-nix-65 branch December 27, 2021 14:16
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.

recursive-nix needed for simple install
2 participants