Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Once merged to the default branch, this PR should allow anyone with nix installed to run
nix run github:crytic/medusa
to use the medusa tool without installing anything globally. Kind of like a single-serving virtualenv. The first time this is run, it'll take some time as medusa's dependencies (egslither
) are downloaded & the project is built, but subsequent runs will start almost instantly without requiring any further downloads. More info renix run
.Allows global installation of medusa with:
nix build && nix-env -i ./result
. Thismedusa
installation is hooked up to a new copy of required dependencies, so it'll take care of the slither dependency if not already present but w/out any risk of conflict w existing globalslither
installation.Also provides a developer environment via
nix develop
which opens a shell that includes basic golang tools & other dependencies needed to build & run tests.This is entirely opt-in, it uses the rest of the repo's config (eg
go.mod
) rather than attempting to replace it. If you don't want to fiddle withnix
, then you can ignore these new files & do the same thing you've always done.