[Nix-dev] Dropped renameImports from buildGoPackage

Joachim Schiele js at lastlog.de
Wed May 20 11:14:05 CEST 2015


On 15.05.2015 11:20, Luca Bruno wrote:
> 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.

that is cool!




More information about the nix-dev mailing list