apptainer, singularity: deprecate workarounds for vendorHash overriding
Remove obsolete overriding workarounds for vendorHash, deleteVendor and proxyVendor (through the <pkg>.override interface). The workaround functionality has been fixed by commit eed069a5bc40 ("buildGoModule: fix overrideAttrs overriding"), and these arguments can now be overridden using <pkg>.overrideAttrs.
This commit is contained in:
parent
11e4741be7
commit
016a24e4dc
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
- `services.rippleDataApi` has been removed, as `ripple-data-api` was broken and had not been updated since 2022.
|
- `services.rippleDataApi` has been removed, as `ripple-data-api` was broken and had not been updated since 2022.
|
||||||
|
|
||||||
|
- `apptainer` and `singularity` deprecate the workaround of overriding `vendorHash` and related attributes via `<pkg>.override`,
|
||||||
|
in favour of the unified overriding of the same group of attributes via `<pkg>.overrideAttrs`.
|
||||||
|
The compatibility layer will be removed in future releases.
|
||||||
|
|
||||||
- `squid` has been updated to version 7, this release includes multiple breaking changes, like ESI removal.
|
- `squid` has been updated to version 7, this release includes multiple breaking changes, like ESI removal.
|
||||||
For more information, [check the release notes](https://github.com/squid-cache/squid/releases/tag/SQUID_7_0_1).
|
For more information, [check the release notes](https://github.com/squid-cache/squid/releases/tag/SQUID_7_0_1).
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
let
|
let
|
||||||
# Backward compatibility layer for the obsolete workaround of
|
# Backward compatibility layer for the obsolete workaround of
|
||||||
# the "vendor-related attributes not overridable" issue (#86349),
|
# the "vendor-related attributes not overridable" issue (#86349),
|
||||||
# whose solution is merged and released.
|
# whose solution (#225051) is merged and released.
|
||||||
|
# TODO(@ShamrockLee): Remove after the Nixpkgs 25.05 branch-off.
|
||||||
_defaultGoVendorArgs = {
|
_defaultGoVendorArgs = {
|
||||||
inherit vendorHash deleteVendor proxyVendor;
|
inherit vendorHash deleteVendor proxyVendor;
|
||||||
};
|
};
|
||||||
@ -96,14 +97,28 @@ in
|
|||||||
# "path/to/source/file1" = [ "<originalDefaultPath11>" "<originalDefaultPath12>" ... ];
|
# "path/to/source/file1" = [ "<originalDefaultPath11>" "<originalDefaultPath12>" ... ];
|
||||||
# }
|
# }
|
||||||
sourceFilesWithDefaultPaths ? { },
|
sourceFilesWithDefaultPaths ? { },
|
||||||
# Workaround #86349
|
# Placeholders for the obsolete workaround of #86349
|
||||||
# should be removed when the issue is resolved
|
# TODO(@ShamrockLee): Remove after the Nixpkgs 25.05 branch-off.
|
||||||
vendorHash ? _defaultGoVendorArgs.vendorHash,
|
vendorHash ? null,
|
||||||
deleteVendor ? _defaultGoVendorArgs.deleteVendor,
|
deleteVendor ? null,
|
||||||
proxyVendor ? _defaultGoVendorArgs.proxyVendor,
|
proxyVendor ? null,
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
# Backward compatibility layer for the obsolete workaround of #86349
|
||||||
|
# TODO(@ShamrockLee): Convert to simple inheritance after the Nixpkgs 25.05 branch-off.
|
||||||
|
moduleArgsOverridingCompat =
|
||||||
|
argName:
|
||||||
|
if args.${argName} or null == null then
|
||||||
|
_defaultGoVendorArgs.${argName}
|
||||||
|
else
|
||||||
|
lib.warn
|
||||||
|
"${projectName}: Override ${argName} with .override is deprecated. Use .overrideAttrs instead."
|
||||||
|
args.${argName};
|
||||||
|
vendorHash = moduleArgsOverridingCompat "vendorHash";
|
||||||
|
deleteVendor = moduleArgsOverridingCompat "deleteVendor";
|
||||||
|
proxyVendor = moduleArgsOverridingCompat "proxyVendor";
|
||||||
|
|
||||||
addShellDoubleQuotes = s: lib.escapeShellArg ''"'' + s + lib.escapeShellArg ''"'';
|
addShellDoubleQuotes = s: lib.escapeShellArg ''"'' + s + lib.escapeShellArg ''"'';
|
||||||
in
|
in
|
||||||
(buildGoModule {
|
(buildGoModule {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user