[Nix-dev] Dropped renameImports from buildGoPackage

Luca Bruno lethalman88 at gmail.com
Fri May 15 11:20:21 CEST 2015


The renameImports was a bad choice for buildGoPackage infrastructure.
Every package would have to specify the needed renames.
Now instead each library can define goPackageAliases, and dependant
packages will automatically rename the imports.

With renameImports: A depends on B -> B changed goPackagePath -> now A
fails to build because it needs a renameImports.
With goPackageAliases: A depends on B -> B changes goPackagePath and
adds goPackageAliases -> now A correctly builds because the rename is
done automatically.

Best regards,


More information about the nix-dev mailing list