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

Introduce installSecretFn to shorten script when many secrets are used. #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

catwith1hat
Copy link

@catwith1hat catwith1hat commented Dec 11, 2023

Fixes #227. Tested with 100 secrets.

Please let me know, if you have some feedback on the style. I didn't try too hard, because I don't know what you prefer.

@catwith1hat catwith1hat force-pushed the installSecretFn branch 2 times, most recently from acd9bc6 to 01cd0f1 Compare December 11, 2023 17:43
@tomeon
Copy link

tomeon commented Dec 16, 2023

@catwith1hat -- thanks for tackling this. I too am hitting the "Argument list too long" error. Wanted to draw your attention to NixOS/nixpkgs#274765, where I am attempting to solve this problem for any and all activation scripts.

Copy link
Owner

@ryantm ryantm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this. I have one readability concern, then we can merge.

modules/age.nix Outdated Show resolved Hide resolved
@catwith1hat catwith1hat force-pushed the installSecretFn branch 2 times, most recently from b3ee74a to 75a1aa6 Compare December 23, 2023 04:51
@catwith1hat
Copy link
Author

I addressed your comments. Please take another look.

@catwith1hat
Copy link
Author

Sorry, did I break the Darwin integration? It's not obvious from the logs on the CI what is happening there. Initially, I didn't pay much attention to the broken tests as many github projects have occassionally broken CIs. But now I see that my other PR #242 does succeed with Darwin, so I am now doubting my hypothesis. Sadly, I have no Darwin machine to test or debug.

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.

error: executing '/nix/store/.../bin/bash': Argument list too long
3 participants