Skip to content

Commit

Permalink
Fix references in error message and add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 12, 2023
1 parent 7a74c8d commit e5c2593
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
No plugin found for "${name}", try adding the missing plugin:
```
asdf2nix.lib.packagesFromToolVersions = {
packagesFromVersionsFile {
plugins = {
${name} = asdf-${name}.lib.packageFromVersion;
...
Expand All @@ -46,13 +46,15 @@
Or enable `skipMissingPlugins` to skip this error:
```
asdf2nix.lib.packagesFromToolVersions = {
packagesFromVersionsFile {
plugins = { ... };
skipMissingPlugins = true;
...
};
```
''
lib.warnIf
(!hasPlugin) "Skipping \"${name}\" plugin"
hasPlugin);
findPackage = plugin: version: plugins.${plugin} {
inherit system version;
Expand Down

0 comments on commit e5c2593

Please sign in to comment.