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

Rename libp2p_helper in go.nix #15627

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

georgeee
Copy link
Member

Move libp2p helper from bin/libp2p_helper to bin/mina-libp2p_helper in generated derivation.
This allows importing derivation as buildInput without use of environment variable (not used in this PR, but will be used in future work).

Affects only nix, changes effectively nothing in operation of it, just updates some internals.

Explain how you tested your changes:

  • Built Mina with nix, all good

Checklist:

  • Dependency versions are unchanged
    • Notify Velocity team if dependencies must change in CI
  • Modified the current draft of release notes with details on what is completed or incomplete within this project
  • Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • All tests pass (CI will check this if you didn't)
  • Serialized types are in stable-versioned modules
  • Does this close issues? None

@georgeee georgeee changed the title Rename { -> mina-}libp2p_helper in go.nix Rename libp2p_helper in go.nix May 13, 2024
Copy link
Member

@rbonichon rbonichon left a comment

Choose a reason for hiding this comment

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

Super trivial changes but removes a pain point that I've run into. 💯

@@ -74,6 +74,10 @@ final: prev: {
cp -r --reflink=auto ${final.libp2p_ipc_go}/ vendor/libp2p_ipc
sed -i 's/.*libp2p_ipc.*//' go.mod
'';
# For compatibility with mina's child_processes library
postInstall = ''
mv $out/bin/libp2p_helper $out/bin/mina-libp2p_helper
Copy link
Member

Choose a reason for hiding this comment

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

Yes! That's nice to be able to avoid some issues automatically

@georgeee
Copy link
Member Author

!ci-build-me

@georgeee
Copy link
Member Author

!ci-build-me

@georgeee georgeee merged commit 7c97c89 into develop May 15, 2024
12 checks passed
@georgeee georgeee deleted the georgeee/rename-libp2p_helper-in-nix branch May 15, 2024 12:59
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.

None yet

2 participants