Skip to content

Commit baca96a

Browse files
authored
Add .envrc sourcing .envrc.local (#3940)
1 parent 5d1765d commit baca96a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# for security, require `direnv allow`
2+
# when any of these files change.
3+
#
4+
# `require_allowed` requires direnv version >= 2.38,
5+
# but should not cause issues on older versions of direnv
6+
require_allowed flake.nix
7+
require_allowed flake.lock
8+
require_allowed .envrc.local
9+
10+
source_env .envrc.local

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target/
55

66
# .envrc typically just has `use flake .`
77
# but this should be done by the user
8-
.envrc
8+
.envrc.local
99

1010
# These are backup files generated by rustfmt
1111
**/*.rs.bk

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ a dockerized Espresso Sequencer network with an example Layer 2 rollup applicati
4040

4141
- Obtain code: `git clone git@github.com:EspressoSystems/espresso-network`.
4242
- Make sure [nix](https://nixos.org/download.html) is installed.
43-
- 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`.
43+
- 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`.
4444
- For installation without nix please see [ubuntu.md](./doc/ubuntu.md).
4545

4646
## Documentation

0 commit comments

Comments
 (0)