Disable Go-version-specific net packages to avoid accidental builds
and dependencies.
This commit is contained in:
parent
1ac4839968
commit
94102eaa41
|
@ -70,6 +70,7 @@ let
|
|||
"github.com/golang/net"
|
||||
];
|
||||
propagatedBuildInputs = [ text crypto ];
|
||||
disabled = isGo14;
|
||||
};
|
||||
|
||||
net_go14 = buildFromGitHub {
|
||||
|
@ -85,6 +86,7 @@ let
|
|||
"github.com/golang/net"
|
||||
];
|
||||
propagatedBuildInputs = [ text ];
|
||||
disabled = !isGo14;
|
||||
};
|
||||
|
||||
net = if isGo14 then net_go14 else net_go15;
|
||||
|
|
Loading…
Reference in New Issue