Bryan Bennett
0c03af5544
Delay invalidating cache and gcroots until print-dev-env call succeeds
...
We currently eagerly invalidate the gcroots and old profile rc,
assuming that the devshell is in a usable state.
If this assumption does not hold,
we can invalidate a working state for a broken one.
Here we just delay calling _nix_clean_old_gcroots
until we know that we're in a usable state.
In the case that the flake is in an unusable state,
this simply reuses the newest working state.
This should address #412 .
2023-11-29 13:58:27 -05:00
Arthur Noel
f33c17faff
flake: rename deprecated overlay to overlays.default
2023-11-29 13:30:44 +00:00
Arthur Noel
bebb554ad7
test-runner: use lib.getExe' for pytest to fix warning
2023-11-29 13:30:44 +00:00
Arthur Noel
e450871ff3
idiomatic test usage
2023-11-29 13:30:44 +00:00
Arthur Noel
aecb03f77a
remove gnugrep reference following bcba983
2023-11-29 13:30:44 +00:00
Arthur Noel
653f9e7217
drop _nix_direnv_realpath
...
its not necessary - nix-store dereferences, and its use with the path
returned by nix-instantiate does nothing
2023-11-29 13:30:44 +00:00
Arthur Noel
7f41803e52
define nix flakes command as function and consistently use it
...
also tidy NIX_BIN_PREFIX usage
2023-11-29 13:30:44 +00:00
Arthur Noel
d1e5ab0e02
_nix_add_gcroot: remove redundant symlink
2023-11-29 13:30:44 +00:00
Arthur Noel
57d2738ded
remove doubled watches
2023-11-29 13:30:44 +00:00
Arthur Noel
a6b4125c93
bad flake expr is fatal
2023-11-29 13:30:44 +00:00
Arthur Noel
26d7044cd7
refactor logging
...
use functions wrapping direnv log_status and log_error
2023-11-29 13:28:03 +00:00
Jörg Thalheim
fdbd3fc59f
Merge pull request #425 from nix-community/more-ruff-lints
...
More ruff lints
2023-11-29 13:25:18 +01:00
mergify[bot]
37148e01db
Merge pull request #426 from kingarrrt/dogfood
...
dogfooding: use direnv
2023-11-29 11:20:27 +00:00
Arthur Noel
5fd43d84f1
dogfooding: use direnv
2023-11-29 11:16:27 +00:00
Jörg Thalheim
4dbf3db600
disable remaining failing ruff lints
2023-11-29 08:32:42 +01:00
Jörg Thalheim
d5a10dc6d5
test: other random ruff lints
2023-11-29 08:32:38 +01:00
Jörg Thalheim
8c46f6e97d
tests: don't use print in favour of logger
2023-11-29 08:28:52 +01:00
Jörg Thalheim
9ac34be48f
test: use builtins for type annotations instead of List / Optional
2023-11-29 08:28:52 +01:00
Jörg Thalheim
26b7fce564
tests: avoid shadowing dir builtin
2023-11-29 08:15:20 +01:00
Jörg Thalheim
ae4a4e8e7c
make tests directory a proper python module
2023-11-29 08:14:14 +01:00
Jörg Thalheim
b029dbf2df
expand ruff checks to test all
2023-11-29 08:13:31 +01:00
Jörg Thalheim
c748c82c89
drop obsolete setup.cfg
2023-11-29 08:12:48 +01:00
Jörg Thalheim
bf686af698
Merge pull request #424 from nix-community/treefmt
...
replace lint with treefmt
2023-11-29 07:53:04 +01:00
Jörg Thalheim
ca8df23667
simplify mergify
2023-11-29 07:36:48 +01:00
Jörg Thalheim
037cc9cc25
format with treefmt
2023-11-29 07:34:23 +01:00
Jörg Thalheim
1133b15e75
add treefmt
2023-11-29 07:34:23 +01:00
Jörg Thalheim
6f38bdb647
update fetchurl checksum
2023-11-27 21:22:22 +01:00
Jörg Thalheim
511f6554b3
bump version 2.5.1
2023-11-27 21:22:13 +01:00
mergify[bot]
1e3bd2942e
Merge pull request #421 from nix-community/revert-deprecation
...
do not deprecate nix_direnv_watch_file yet (2.5.1)
2023-11-27 20:19:33 +00:00
Jörg Thalheim
a59d64917e
do not deprecate nix_direnv_watch_file yet
...
we do this in 3.0.0
2023-11-27 20:19:21 +01:00
mergify[bot]
b2c8ff560e
Merge pull request #418 from nix-community/update_flake_lock_action
...
flake.lock: Update
2023-11-27 13:41:13 +00:00
mergify[bot]
c5b6ca3a13
Merge branch 'master' into update_flake_lock_action
2023-11-27 13:37:51 +00:00
Bryan Bennett
9a96e30d9a
Merge pull request #417 from kingarrrt/master
...
_nix_direnv_watches: update path regex to match capitalized path
2023-11-27 08:37:15 -05:00
github-actions[bot]
49b5d65b47
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/51a01a7e5515b469886c120e38db325c96694c2f' (2023-11-21)
→ 'github:NixOS/nixpkgs/0bd59c54ef06bc34eca01e37d689f5e46b3fe2f1' (2023-11-24)
2023-11-27 01:18:17 +00:00
Arthur Noel
647d7feb7f
_nix_direnv_watches: update path regex to match capitalized path
2023-11-26 21:06:37 +00:00
Jörg Thalheim
a7fe6f3126
update fetchurl checksum
2023-11-26 14:34:42 +01:00
Jörg Thalheim
c84183c0ac
bump version 2.5.0
2023-11-26 14:34:24 +01:00
mergify[bot]
3bc5ef4363
Merge pull request #415 from nix-community/no-grep
...
drop dependency on gnugrep
2023-11-26 13:32:17 +00:00
mergify[bot]
c33cad83f8
Merge branch 'master' into no-grep
2023-11-26 13:29:01 +00:00
mergify[bot]
e42b6ce275
Merge pull request #416 from nix-community/joerg-ci
...
drop nix_direnv_watch_file - instead parse DIRENV_WATCHES
2023-11-26 13:28:56 +00:00
mergify[bot]
f559646857
Merge branch 'master' into joerg-ci
2023-11-26 13:25:42 +00:00
Jörg Thalheim
24913b3169
Merge pull request #413 from nix-community/update_flake_lock_action
...
flake.lock: Update
2023-11-26 14:25:06 +01:00
Jörg Thalheim
946b84daed
fix crash if DIRENV_WATCHES is not set
...
This shouldn't happen in our current usage but better safe than sorry.
2023-11-26 14:19:24 +01:00
Jörg Thalheim
a20b32d9cd
drop dependency on jq
2023-11-26 14:03:35 +01:00
Jörg Thalheim
4248f7735b
use direnv show_dump to extract direnv watches
2023-11-26 13:15:37 +01:00
Jörg Thalheim
bcba9830e4
drop dependency on gnugrep
2023-11-26 12:32:12 +01:00
Arthur Noel
433948e9ad
fix typos
2023-11-25 22:27:58 +00:00
Arthur Noel
6997988d1b
drop nix_direnv_watch_file - instead parse DIRENV_WATCHES
...
fixes #408
2023-11-25 22:27:58 +00:00
github-actions[bot]
6a63fd9c57
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/0bf3f5cf6a98b5d077cdcdb00a6d4b3d92bc78b5' (2023-11-19)
→ 'github:NixOS/nixpkgs/51a01a7e5515b469886c120e38db325c96694c2f' (2023-11-21)
2023-11-23 01:17:48 +00:00
mergify[bot]
7a472ecec6
Merge pull request #411 from nix-community/update_flake_lock_action
...
flake.lock: Update
2023-11-21 09:24:02 +00:00