Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# for security, require `direnv allow`
# when any of these files change.
#
# `require_allowed` requires direnv version >= 2.38,
# but should not cause issues on older versions of direnv
Comment on lines +4 to +5

Choose a reason for hiding this comment

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

medium

The comment states that require_allowed should not cause issues on older versions of direnv, but it's generally safer to use features that are widely supported or provide clear fallback mechanisms. While this might not be a critical issue, it's good practice to ensure compatibility or explicitly document the minimum required direnv version if this feature is essential.

require_allowed flake.nix
require_allowed flake.lock
require_allowed .envrc.local

source_env .envrc.local
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target/

# .envrc typically just has `use flake .`
# but this should be done by the user
.envrc
.envrc.local

# These are backup files generated by rustfmt
**/*.rs.bk
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ a dockerized Espresso Sequencer network with an example Layer 2 rollup applicati

- Obtain code: `git clone git@github.com:EspressoSystems/espresso-network`.
- Make sure [nix](https://nixos.org/download.html) is installed.
- Activate the environment with `nix-shell`, or `nix develop`. If using [direnv](https://direnv.net/), copy `.envrc.example` to `.envrc` (or create your own `.envrc` file) and run `direnv allow`.
- Activate the environment with `nix-shell`, or `nix develop`. If using [direnv](https://direnv.net/), copy `.envrc.example` to `.envrc.local` (or create your own `.envrc.local` file) and run `direnv allow`.
- For installation without nix please see [ubuntu.md](./doc/ubuntu.md).

## Documentation
Expand Down
Loading