tests.nixpkgs-check-by-name: Better empty argument error
This commit is contained in:
parent
f056449c46
commit
7858f06288
4 changed files with 12 additions and 0 deletions
|
@ -213,6 +213,8 @@ impl fmt::Display for NixpkgsProblem {
|
|||
However, in this PR, the second argument is empty. See the definition in {}:{}:
|
||||
|
||||
{}
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
",
|
||||
structure::relative_dir_for_package(package_name).display(),
|
||||
structure::relative_file_for_package(package_name).display(),
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
noEval = self.callPackage ./pkgs/by-name/no/noEval/package.nix { };
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
|
||||
- Because pkgs/by-name/on/onlyMove exists, the attribute `pkgs.onlyMove` must be defined like
|
||||
|
||||
onlyMove = callPackage ./pkgs/by-name/on/onlyMove/package.nix { /* ... */ };
|
||||
|
@ -14,4 +16,6 @@
|
|||
|
||||
onlyMove = self.callPackage ./pkgs/by-name/on/onlyMove/package.nix { };
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
|
||||
This PR introduces additional instances of discouraged patterns as listed above. Merging is discouraged but would not break the base branch.
|
||||
|
|
|
@ -6,4 +6,6 @@
|
|||
|
||||
nonDerivation = self.callPackage ./pkgs/by-name/no/nonDerivation/package.nix { };
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
|
||||
This PR introduces additional instances of discouraged patterns as listed above. Merging is discouraged but would not break the base branch.
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
a = self.callPackage ./pkgs/by-name/a/a/package.nix { };
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
|
||||
- Attribute `pkgs.b` is a new top-level package using `pkgs.callPackage ... { /* ... */ }`.
|
||||
Please define it in pkgs/by-name/b/b/package.nix instead.
|
||||
See `pkgs/by-name/README.md` for more details.
|
||||
|
@ -19,6 +21,8 @@
|
|||
|
||||
c = self.callPackage ./pkgs/by-name/c/c/package.nix { };
|
||||
|
||||
Such a definition is provided automatically and therefore not necessary. Please remove it.
|
||||
|
||||
- Attribute `pkgs.d` is a new top-level package using `pkgs.callPackage ... { /* ... */ }`.
|
||||
Please define it in pkgs/by-name/d/d/package.nix instead.
|
||||
See `pkgs/by-name/README.md` for more details.
|
||||
|
|
Loading…
Reference in a new issue