nix-community / vgo2nix

Convert go.mod files to nixpkgs buildGoPackage compatible deps.nix files [maintainer=@adisbladis]
MIT License
89 stars 21 forks source link

respect go.mod's replace operator #22

Closed flokli closed 3 years ago

flokli commented 5 years ago

From https://github.com/NixOS/nixpkgs/pull/62432#discussion_r289618118

Looks like vgo2nix doesn't respect go.mod's replace operator. Shouldn't be an issue in this case, but it is notable.

zx2c4 commented 5 years ago

Some more details, which might help. Consider this go.mod:

require github.com/Microsoft/go-winio v0.4.12
replace github.com/Microsoft/go-winio => golang.zx2c4.com/wireguard/windows v0.0.0-20190429060359-b01600290cd4

What this is says is, "replace all references to github.com/Microsoft/go-winio with the repo at golang.zx2c4.com/wireguard/windows checked out to revision v0.0.0-20190429060359-b01600290cd4." Right, now, however, vgo2nix ignores the replace part.

Vskilet commented 5 years ago

I've the same problem for building mautrix-whatsapp bridge

Vskilet commented 5 years ago

Is there someone who found a workaround ?

mikroskeem commented 4 years ago

Any updates on this?

mikroskeem commented 4 years ago

27

SuperSandro2000 commented 3 years ago

@Mic92 can be closed, too.