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