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

feat: add --subpackage option to update multiple derivations #311

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

av-gal
Copy link
Contributor

@av-gal av-gal commented Dec 17, 2024

Adds an option for users to specify subpackages that nix-update should also look at. nix-update will evaluate these sub-derivations after updating the package's version and source, but before trying to evaluate the package's main derivation. This allows for subpackages that are depended upon by the main package build.

Not included is any sort of accommodation for sub-subpackages. I hope those do not occur often in real builds.

Closes #310.

@av-gal av-gal force-pushed the multiple-subpackages branch from 89b2bd8 to cdd631d Compare December 17, 2024 07:46
@Mic92
Copy link
Owner

Mic92 commented Dec 17, 2024

Can we get a test for this?

@av-gal av-gal force-pushed the multiple-subpackages branch from 78e9b10 to 6575daf Compare December 19, 2024 05:24
@av-gal
Copy link
Contributor Author

av-gal commented Dec 20, 2024

Test added, it's just a simplified version of what I'm packaging. Thanks for your time, please let me know if there's anything else.

@Mic92 Mic92 force-pushed the multiple-subpackages branch from 6575daf to ab661ac Compare December 20, 2024 19:41
@Mic92
Copy link
Owner

Mic92 commented Dec 20, 2024

@av-gal I added some documentation. Please check.

@Mic92 Mic92 force-pushed the multiple-subpackages branch from ab661ac to 03005af Compare December 20, 2024 19:42
@av-gal av-gal force-pushed the multiple-subpackages branch from 03005af to 61113ae Compare December 21, 2024 05:43
@av-gal
Copy link
Contributor Author

av-gal commented Dec 21, 2024

I fixed a typo in the name of the option, and expanded your comment about repeating the option for multiple subpackages. Otherwise, LGTM.

@Mic92
Copy link
Owner

Mic92 commented Dec 21, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Dec 21, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 33baee5

@mergify mergify bot merged commit 33baee5 into Mic92:main Dec 21, 2024
5 checks passed
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.

feature request: update multiple derivations in one package
2 participants