Skip to content

Commit

Permalink
Remodel test based on invalid name test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-PH committed Oct 29, 2024
1 parent 05bafef commit c20b06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/by-name-numprefix/expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
trace: This should be on stderr!
@REDACTED@error: This is an error!@REDACTED@
- pkgs/by-name/_1/10foo: Attribute `10foo` should not be number-prefixed. It is suggestet to `"`-wrap this name
This PR introduces the problems listed above. Please fix them before merging, otherwise the base branch would break.
4 changes: 2 additions & 2 deletions tests/by-name-numprefix/pkgs/by-name/_1/10foo/package.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{ }:
{ someDrv }: SomeDrv
# If we caused an actual Nix failure
builtins.trace "This should be on stderr!" throw "This is an error!"
# builtins.trace "This should be on stderr!" throw "This is an error!"

0 comments on commit c20b06e

Please sign in to comment.