Skip to content

Commit

Permalink
Some whitespace for lock file error formatting (#544)
Browse files Browse the repository at this point in the history
* Some whitespace for lock file error formatting

* Fix typo
  • Loading branch information
chaoflow authored Jul 1, 2023
1 parent 429171b commit 1fd0c83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v1/nix/modules/drv-parts/buildPythonPackage/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ in {
boolOpt
// {
default = true;
decsription = ''
description = ''
Remove bytecode from bin folder.
When a Python script has the extension `.py`, bytecode is generated
Typically, executables in bin have no extension, so no bytecode is generated.
Expand Down
14 changes: 12 additions & 2 deletions v1/nix/modules/drv-parts/lock/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,28 @@
'';

errorMissingFile = ''
The lock file ${cfg.repoRoot}${cfg.lockFileRel} for drv-parts module '${config.name}' is missing.
The lock file ${cfg.repoRoot}${cfg.lockFileRel}
for drv-parts module '${config.name}' is missing.
To update it using flakes:
nix run -L .#${config.name}.config.lock.refresh
To update it without flakes:
bash -c $(nix-build ${config.lock.refresh.drvPath} --no-link)/bin/refresh
'';

errorOutdated = field: ''
The lock file ${cfg.repoRoot}${cfg.lockFileRel} for drv-parts module '${config.name}' does not contain field `${field}`.
The lock file ${cfg.repoRoot}${cfg.lockFileRel}
for drv-parts module '${config.name}' does not contain field `${field}`.
To update it using flakes:
nix run -L .#${config.name}.config.lock.refresh
To update it without flakes:
bash -c $(nix-build ${config.lock.refresh.drvPath} --no-link)/bin/refresh
'';
Expand Down

0 comments on commit 1fd0c83

Please sign in to comment.