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: fix nix-build via allowing asset files #4796

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Aug 7, 2024

Describe your changes

Adds a comprehensive allow-list of file extensions to the nix build context. Includes zip files, which will fail a build as of #4782, and other flat file inputs like CSV and JSON for testnet generation. Also adds the pindexer binary to the nix-build outputs.

Issue ticket number and link

Refs #4782. Doesn't close it, because it'd be nice to tack on a CI job that guards against breakage. Will follow up with that separately.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    build logic only, no changes to app code

Testing and review

  1. Make sure you've got nix installed (see dev env docs if you need help)
  2. Run nix build in the repo root
  3. Ensure no errors, exits 0.

@mitchmindtree
Copy link

Can confirm main doesn't work for me, but this branch does!

Tested with nix shell github:penumbra-zone/penumbra/4790-fix-nix-build on nixos.

Adds a comprehensive allow-list of file extensions to the nix build
context. Includes zip files, which will fail a build as of #4782,
and other flat file inputs like CSV and JSON for testnet generation.
Also adds the `pindexer` binary to the nix-build outputs.
@conorsch conorsch merged commit 479dd5c into main Aug 15, 2024
13 checks passed
@conorsch conorsch deleted the 4790-fix-nix-build branch August 15, 2024 18:14
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.

2 participants