Skip to content

Commit

Permalink
Merge pull request #29173 from orivej/golang
Browse files Browse the repository at this point in the history
go: buildGoPackage: 1.8 -> 1.9
  • Loading branch information
orivej authored Sep 28, 2017
2 parents 595c8fa + 2be4d53 commit 1e0ec42
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
6 changes: 4 additions & 2 deletions pkgs/applications/networking/syncthing012/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ buildGoPackage rec {
version = "0.12.15";
rev = "v${version}";

buildFlags = "--tags noupgrade,release";

goPackagePath = "github.com/syncthing/syncthing";

src = fetchFromGitHub {
Expand All @@ -22,4 +20,8 @@ buildGoPackage rec {
# Mostly a cosmetic change
sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
'';

preBuild = ''
export buildFlagsArray+=("-tags" "noupgrade release")
'';
}
2 changes: 1 addition & 1 deletion pkgs/development/go-modules/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ go.stdenv.mkDerivation (
[ -n "$excludedPackages" ] && echo "$d" | grep -q "$excludedPackages" && return 0
local OUT
if ! OUT="$(go $cmd $buildFlags "''${buildFlagsArray[@]}" -v $d 2>&1)"; then
if ! echo "$OUT" | grep -q 'no buildable Go source files'; then
if ! echo "$OUT" | grep -qE '(no( buildable| non-test)?|build constraints exclude all) Go (source )?files'; then
echo "$OUT" >&2
return 1
fi
Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/filesystems/gcsfuse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

buildGoPackage rec {
name = "gcsfuse-${version}";
version = "v0.19.0";
rev = "81281027c0093e3f916a6e611a128ec5c3a12ece";
version = "0.23.0";
rev = "v${version}";

goPackagePath = "github.com/googlecloudplatform/gcsfuse";

src = fetchgit {
inherit rev;
url = "https://github.com/googlecloudplatform/gcsfuse";
sha256 = "1lj9czippsgkhr8y3r7vwxgc8i952v76v1shdv10p43gsxwyyi9a";
sha256 = "1qxbpsmz22l5w4b7wbgfdq4v85cfc9ka9i8h4c56nals1x5lcsnx";
};

meta = {
Expand Down
7 changes: 5 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11130,7 +11130,7 @@ with pkgs;
go = go_1_9;
};

buildGoPackage = buildGo18Package;
buildGoPackage = buildGo19Package;

go2nix = callPackage ../development/tools/go2nix { };

Expand Down Expand Up @@ -12017,7 +12017,10 @@ with pkgs;

cifs-utils = callPackage ../os-specific/linux/cifs-utils { };

cockroachdb = callPackage ../servers/sql/cockroachdb { };
cockroachdb = callPackage ../servers/sql/cockroachdb {
# Go 1.9 build fails with "go1.8.* required (see CONTRIBUTING.md)".
buildGoPackage = buildGo18Package;
};

conky = callPackage ../os-specific/linux/conky ({
lua = lua5_1; # conky can use 5.2, but toluapp can not
Expand Down

0 comments on commit 1e0ec42

Please sign in to comment.