nixpkgs/pkgs/build-support/go
Elliot Cameron e6adf1505c buildGoModule: propagate setSourceRoot to goModules
The underlying goModules derivation must have the same source root as
the overall package. sourceRoot is being propagated already, but
setSourceRoot was not. This was surely an oversight.

This is implemented in such a way that it cannot break existing
vendorHashes unless the package is using setSourceRoot already. If
that's the case, then the package is either broken or found a workaround
to do deal with this very issue (e.g. by using `cd path` in an early
phase).

A simple search (`rg setSourceRoot $(rg -l buildGoModule)`) reveals that
no such packages obviously exist in Nixpkgs.
2024-04-29 14:12:26 -04:00
..
module.nix buildGoModule: propagate setSourceRoot to goModules 2024-04-29 14:12:26 -04:00
package.nix buildGoModule: warn if -trimpath or -mod= is used 2024-03-28 07:57:19 +01:00