Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: go mod vendor removes files in 1.13 that were present on 1.12 #33353

Closed
carlosedp opened this issue Jul 29, 2019 · 9 comments
Closed

cmd/go: go mod vendor removes files in 1.13 that were present on 1.12 #33353

carlosedp opened this issue Jul 29, 2019 · 9 comments

Comments

@carlosedp
Copy link

@carlosedp carlosedp commented Jul 29, 2019

What version of Go are you using (go version)?

Comparing Go 1.13 beta1 with go 1.12.7:

# go version
go version go1.12.7 linux/amd64

vs

 # go version
go version go1.13beta1 linux/amd64

Does this issue reproduce with the latest release?

The problem occurs on latest 1.13 tree.

What operating system and processor architecture are you using (go env)?

go env Output
# On go 1.13:

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/prometheus/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build407703171=/tmp/go-build -gno-record-gcc-switches"

On go 1.12.7:

go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/prometheus/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build197139922=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Testing in Docker containers for both versions (docker run -it --rm golang:1.12 bash and docker run -it --rm golang:1.13beta1-alpine3.10 sh), I checked-out Prometheus tree and ran go mod vendor. On 1.12 my module deps were kept intact but on 1.13 many files were removed. Below the walkthru:

Go 1.12

➜ docker run -it --rm golang:1.12
root@20ec4e634251:/go# git clone https://github.com/carlosedp/prometheus --depth=1 -b riscv-support
Cloning into 'prometheus'...
remote: Enumerating objects: 4737, done.
remote: Counting objects: 100% (4737/4737), done.
remote: Compressing objects: 100% (3409/3409), done.
remote: Total 4737 (delta 1199), reused 3635 (delta 1005), pack-reused 0
Receiving objects: 100% (4737/4737), 11.60 MiB | 2.89 MiB/s, done.
Resolving deltas: 100% (1199/1199), done.

root@20ec4e634251:/go# cd prometheus/
root@20ec4e634251:/go/prometheus# git status

On branch riscv-support
Your branch is up to date with 'origin/riscv-support'.

nothing to commit, working tree clean

root@20ec4e634251:/go/prometheus# git log
commit 3cb797864d63da07ad08a8003e127af273bf2425 (grafted, HEAD -> riscv-support, origin/riscv-support)
Author: CarlosEDP <me@carlosedp.com>
Date:   Mon Jul 29 13:05:52 2019 -0400

    Rebase

    Signed-off-by: CarlosEDP <me@carlosedp.com>

root@20ec4e634251:/go/prometheus# go mod vendor
go: finding github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34
go: finding github.com/grpc-ecosystem/grpc-gateway v1.8.5
go: finding github.com/miekg/dns v1.1.10
go: finding github.com/golang/groupcache v0.0.0-20180924190550-6f2cf27854a4
go: finding github.com/oklog/run v1.0.0
go: finding github.com/OneOfOne/xxhash v1.2.5
go: finding github.com/prometheus/common v0.4.1
go: finding github.com/gogo/protobuf v1.2.1
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/json-iterator/go v1.1.6
go: finding github.com/influxdata/influxdb v1.7.7
go: finding github.com/go-kit/kit v0.8.0
go: finding github.com/prometheus/tsdb v0.10.0
go: finding k8s.io/api v0.0.0-20190718183219-b59d8169aab5
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/aws/aws-sdk-go v1.15.24
go: finding github.com/go-logfmt/logfmt v0.3.0
go: finding github.com/Azure/go-autorest v11.2.8+incompatible
go: finding github.com/go-stack/stack v1.8.0
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: finding golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: finding github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
go: finding github.com/opentracing/opentracing-go v1.0.2
go: finding github.com/golang/snappy v0.0.1
go: finding gopkg.in/inf.v0 v0.9.1
go: finding github.com/hashicorp/go-msgpack v0.5.4
go: finding google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8
go: finding gopkg.in/resty.v1 v1.12.0
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/Azure/azure-sdk-for-go v23.2.0+incompatible
go: finding github.com/googleapis/gnostic v0.2.0
go: finding golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8
go: finding gopkg.in/yaml.v2 v2.2.1
go: finding golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: finding golang.org/x/net v0.0.0-20181114220301-adae6a3d119a
go: finding k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7
go: finding github.com/golang/protobuf v1.2.0
go: finding gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: finding github.com/ghodss/yaml v1.0.0
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/evanphx/json-patch v4.1.0+incompatible
go: finding github.com/gogo/protobuf v1.1.1
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: finding github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a
go: finding golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/jtolds/gls v4.2.1+incompatible
go: finding github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7
go: finding github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding google.golang.org/grpc v1.19.1
go: finding github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415
go: finding github.com/prometheus/alertmanager v0.17.0
go: finding github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b
go: finding google.golang.org/api v0.3.2
go: finding github.com/stretchr/testify v1.2.2
go: finding golang.org/x/sys v0.0.0-20180830151530-49385e6e1522
go: finding golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3
go: finding cloud.google.com/go v0.26.0
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding github.com/hashicorp/golang-lru v0.5.1
go: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: finding github.com/BurntSushi/toml v0.3.1
go: finding github.com/oklog/ulid v1.3.1
go: finding github.com/go-ini/ini v1.25.4
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding github.com/prometheus/common v0.2.0
go: finding google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19
go: finding github.com/davecgh/go-spew v1.1.1
go: finding golang.org/x/tools v0.0.0-20190118193359-16909d206f00
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/cespare/xxhash v1.1.0
go: finding github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: finding gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: finding github.com/hashicorp/memberlist v0.1.3
go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: finding golang.org/x/sys v0.0.0-20190209173611-3b5209105503
go: finding golang.org/x/text v0.3.1-0.20180805044716-cb6730876b98
go: finding github.com/hashicorp/consul/api v1.1.0
go: finding github.com/matttproud/golang_protobuf_extensions v1.0.1
go: finding golang.org/x/net v0.0.0-20181220203305-927f97764cc3
go: finding github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding github.com/simonpasquier/klog-gokit v0.1.0
go: finding golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961
go: finding github.com/OneOfOne/xxhash v1.2.2
go: finding golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67
go: finding k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
go: finding contrib.go.opencensus.io/exporter/ocagent v0.4.12
go: finding honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding google.golang.org/appengine v1.4.0
go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
go: finding github.com/cespare/xxhash v0.0.0-20181017004759-096ff4a8a059
go: finding github.com/go-openapi/strfmt v0.19.0
go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: finding golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: finding github.com/spf13/pflag v1.0.3
go: finding google.golang.org/appengine v1.1.0
go: finding github.com/kr/text v0.1.0
go: finding github.com/julienschmidt/httprouter v1.2.0
go: finding github.com/client9/misspell v0.3.4
go: finding github.com/census-instrumentation/opencensus-proto v0.2.0
go: finding github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb
go: finding github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/prometheus/prometheus v0.0.0-20180315085919-58e2a31db8de
go: finding github.com/spf13/pflag v1.0.1
go: finding github.com/kr/pty v1.1.1
go: finding k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c
go: finding github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: finding go.opencensus.io v0.20.2
go: finding sigs.k8s.io/yaml v1.1.0
go: finding github.com/jessevdk/go-flags v0.0.0-20180331124232-1c38ed7ad0cc
go: finding golang.org/x/tools v0.0.0-20190226205152-f727befe758c
go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529
go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc
go: finding github.com/go-logfmt/logfmt v0.4.0
go: finding golang.org/x/exp v0.0.0-20190121172915-509febef88a4
go: finding github.com/prometheus/client_golang v1.0.0
go: finding github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: finding github.com/Azure/go-autorest v11.1.2+incompatible
go: finding github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
go: finding github.com/gophercloud/gophercloud v0.0.0-20190126172459-c818fa66e4c8
go: finding github.com/dgrijalva/jwt-go v0.0.0-20160705203006-01aeca54ebda
go: finding golang.org/x/tools v0.0.0-20180221164845-07fd8470d635
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding github.com/go-openapi/spec v0.17.2
go: finding golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: finding github.com/google/uuid v1.1.1
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f
go: finding github.com/hashicorp/serf v0.8.2
go: finding gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7
go: finding github.com/go-openapi/errors v0.17.2
go: finding github.com/oklog/ulid v0.0.0-20170117200651-66bb6560562f
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
go: finding golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: finding github.com/google/uuid v1.0.0
go: finding go.opencensus.io v0.20.1
go: finding github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: finding golang.org/x/net v0.0.0-20190213061140-3a22650c66bd
go: finding github.com/hashicorp/consul/sdk v0.1.1
go: finding github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329
go: finding github.com/google/go-cmp v0.3.0
go: finding k8s.io/utils v0.0.0-20190221042446-c2654d5206da
go: finding github.com/hashicorp/go-sockaddr v1.0.0
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/go-openapi/runtime v0.18.0
go: finding github.com/go-openapi/jsonreference v0.17.0
go: finding golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go: finding github.com/hashicorp/go-msgpack v0.5.3
go: finding github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829
go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3
go: finding github.com/prometheus/client_golang v0.9.1
go: finding golang.org/x/tools v0.0.0-20190114222345-bf090417da8b
go: finding google.golang.org/api v0.3.1
go: finding github.com/rs/cors v1.6.0
go: finding github.com/hashicorp/go-multierror v1.0.0
go: finding github.com/go-openapi/jsonreference v0.17.2
go: finding github.com/hashicorp/go-sockaddr v1.0.2
go: finding github.com/google/go-cmp v0.2.0
go: finding github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee
go: finding github.com/stretchr/objx v0.1.1
go: finding golang.org/x/time v0.0.0-20161028155119-f51c12702a4d
go: finding github.com/hashicorp/go-syslog v1.0.0
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/hashicorp/golang-lru v0.5.0
go: finding github.com/peterbourgon/diskv v2.0.1+incompatible
go: finding github.com/go-openapi/jsonpointer v0.17.2
go: finding github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7
go: finding github.com/mitchellh/go-testing-interface v1.0.0
go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
go: finding github.com/hashicorp/go-rootcerts v1.0.0
go: finding github.com/go-openapi/swag v0.17.0
go: finding github.com/PuerkitoBio/purell v1.1.0
go: finding github.com/prometheus/client_golang v0.9.2
go: finding github.com/go-openapi/strfmt v0.17.2
go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5
go: finding github.com/onsi/gomega v0.0.0-20190113212917-5533ce8a0da3
go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
go: finding github.com/apache/thrift v0.12.0
go: finding github.com/hashicorp/errwrap v1.0.0
go: finding github.com/ryanuber/columnize v2.1.0+incompatible
go: finding cloud.google.com/go v0.34.0
go: finding golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
go: finding github.com/gregjones/httpcache v0.0.0-20170728041850-787624de3eb7
go: finding github.com/go-openapi/analysis v0.17.2
go: finding github.com/hashicorp/logutils v1.0.0
go: finding github.com/go-openapi/loads v0.17.2
go: finding github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1
go: finding github.com/hashicorp/go-immutable-radix v1.0.0
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding github.com/beorn7/perks v1.0.0
go: finding github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: finding golang.org/x/net v0.0.0-20190206173232-65e2d4e15006
go: finding gopkg.in/inf.v0 v0.9.0
go: finding github.com/go-openapi/errors v0.17.0
go: finding golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421
go: finding google.golang.org/grpc v1.19.0
go: finding github.com/golang/mock v1.1.1
go: finding github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
go: finding github.com/google/btree v0.0.0-20160524151835-7d79101e329e
go: finding github.com/hashicorp/go-uuid v1.0.0
go: finding golang.org/x/crypto v0.0.0-20181025213731-e84da0312774
go: finding github.com/openzipkin/zipkin-go v0.1.6
go: finding github.com/go-openapi/loads v0.17.0
go: finding golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
go: finding github.com/go-openapi/validate v0.17.2
go: finding github.com/hpcloud/tail v1.0.0
go: finding github.com/mitchellh/gox v0.4.0
go: finding github.com/satori/go.uuid v0.0.0-20160603004225-b111a074d5ef
go: finding github.com/prometheus/common v0.0.0-20181126121408-4724e9255275
go: finding github.com/miekg/dns v1.0.14
go: finding github.com/mitchellh/iochan v1.0.0
go: finding github.com/hashicorp/go-cleanhttp v0.5.1
go: finding google.golang.org/appengine v1.5.0
go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: finding k8s.io/api v0.0.0-20190620084959-7cf5895f2711
go: finding github.com/mitchellh/go-wordwrap v1.0.0
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/Shopify/toxiproxy v2.1.4+incompatible
go: finding github.com/mitchellh/go-homedir v1.0.0
go: finding github.com/golang/protobuf v1.3.1
go: finding github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a
go: finding github.com/Shopify/sarama v1.19.0
go: finding github.com/hashicorp/mdns v1.0.0
go: finding github.com/imdario/mergo v0.3.5
go: finding github.com/hashicorp/go-uuid v1.0.1
go: finding github.com/onsi/ginkgo v1.6.0
go: finding github.com/google/uuid v1.1.0
go: finding github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: finding github.com/go-openapi/spec v0.17.0
go: finding golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
go: finding github.com/gorilla/context v1.1.1
go: finding github.com/mitchellh/cli v1.0.0
go: finding github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/gorilla/mux v1.6.2
go: finding github.com/go-openapi/swag v0.17.2
go: finding github.com/go-openapi/analysis v0.17.0
go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
go: finding google.golang.org/grpc v1.17.0
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/gogo/protobuf v1.2.0
go: finding github.com/cenkalti/backoff v0.0.0-20181003080854-62661b46c409
go: finding github.com/pierrec/lz4 v2.0.5+incompatible
go: finding github.com/prometheus/procfs v0.0.2
go: finding github.com/pborman/uuid v1.2.0
go: finding k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: finding github.com/eapache/queue v1.1.0
go: finding github.com/eapache/go-resiliency v1.1.0
go: finding gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: finding github.com/posener/complete v1.1.1
go: finding github.com/hashicorp/go.net v0.0.1
go: finding github.com/docker/go-units v0.3.3
go: finding github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
go: finding github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: finding golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc
go: finding github.com/onsi/gomega v1.4.3
go: finding golang.org/x/net v0.0.0-20181005035420-146acd28ed58
go: finding github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277
go: finding gopkg.in/fsnotify.v1 v1.4.7
go: finding github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9
go: finding github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f
go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310
go: finding github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
go: finding github.com/mattn/go-colorable v0.0.9
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding github.com/fatih/color v1.7.0
go: finding honnef.co/go/tools v0.0.0-20180728063816-88497007e858
go: finding golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52
go: finding golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b
go: finding github.com/go-openapi/strfmt v0.17.0
go: finding github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6
go: finding golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e
go: finding github.com/go-openapi/jsonpointer v0.17.0
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e
go: finding github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/go-kit/kit v0.8.0
go: downloading github.com/prometheus/common v0.4.1
go: downloading github.com/json-iterator/go v1.1.6
go: downloading github.com/golang/snappy v0.0.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/Azure/go-autorest v11.2.8+incompatible
go: downloading github.com/Azure/azure-sdk-for-go v23.2.0+incompatible
go: downloading github.com/opentracing/opentracing-go v1.0.2
go: extracting github.com/pkg/errors v0.8.1
go: downloading google.golang.org/api v0.3.2
go: extracting gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/oklog/run v1.0.0
go: extracting github.com/opentracing/opentracing-go v1.0.2
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: extracting github.com/json-iterator/go v1.1.6
go: extracting github.com/golang/snappy v0.0.1
go: downloading github.com/prometheus/client_golang v1.0.0
go: extracting github.com/oklog/run v1.0.0
go: extracting github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: extracting github.com/prometheus/common v0.4.1
go: downloading golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: downloading google.golang.org/grpc v1.19.1
go: extracting github.com/Azure/go-autorest v11.2.8+incompatible
go: extracting github.com/prometheus/client_golang v1.0.0
go: downloading github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e
go: downloading golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: extracting github.com/go-kit/kit v0.8.0
go: extracting github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading gopkg.in/yaml.v2 v2.2.2
go: extracting golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go: downloading github.com/stretchr/testify v1.3.0
go: downloading github.com/grpc-ecosystem/grpc-gateway v1.8.5
go: extracting gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/prometheus/procfs v0.0.2
go: extracting github.com/stretchr/testify v1.3.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: extracting github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/influxdata/influxdb v1.7.7
go: extracting github.com/prometheus/procfs v0.0.2
go: extracting google.golang.org/grpc v1.19.1
go: extracting github.com/grpc-ecosystem/grpc-gateway v1.8.5
go: downloading github.com/prometheus/tsdb v0.10.0
go: downloading google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19
go: downloading github.com/gogo/protobuf v1.2.1
go: downloading github.com/hashicorp/consul/api v1.1.0
go: extracting github.com/hashicorp/consul/api v1.1.0
go: downloading golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: extracting github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e
go: extracting github.com/prometheus/tsdb v0.10.0
go: downloading github.com/soheilhy/cmux v0.1.4
go: extracting golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: extracting github.com/soheilhy/cmux v0.1.4
go: downloading github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: extracting github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: downloading github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7
go: extracting golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: extracting github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7
go: downloading github.com/golang/protobuf v1.3.1
go: extracting github.com/golang/protobuf v1.3.1
go: downloading gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: downloading github.com/hashicorp/serf v0.8.2
go: extracting gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: extracting github.com/gogo/protobuf v1.2.1
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: downloading github.com/cespare/xxhash v1.1.0
go: extracting github.com/cespare/xxhash v1.1.0
go: downloading github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b
go: extracting github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/hashicorp/go-rootcerts v1.0.0
go: extracting github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b
go: downloading golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: extracting github.com/hashicorp/go-rootcerts v1.0.0
go: extracting golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: extracting github.com/hashicorp/serf v0.8.2
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/mitchellh/go-homedir v1.0.0
go: extracting github.com/mitchellh/go-homedir v1.0.0
go: downloading github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
go: extracting github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
go: downloading github.com/go-logfmt/logfmt v0.4.0
go: extracting github.com/go-logfmt/logfmt v0.4.0
go: downloading github.com/simonpasquier/klog-gokit v0.1.0
go: extracting github.com/simonpasquier/klog-gokit v0.1.0
go: downloading github.com/beorn7/perks v1.0.0
go: extracting github.com/beorn7/perks v1.0.0
go: downloading google.golang.org/appengine v1.5.0
go: extracting google.golang.org/appengine v1.5.0
go: downloading github.com/miekg/dns v1.1.10
go: extracting golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: downloading k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
go: extracting google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19
go: extracting k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
go: downloading k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
go: downloading github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: downloading github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: downloading k8s.io/api v0.0.0-20190718183219-b59d8169aab5
go: extracting github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: extracting github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: extracting github.com/miekg/dns v1.1.10
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/oklog/ulid v1.3.1
go: extracting github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/davecgh/go-spew v1.1.1
go: extracting github.com/oklog/ulid v1.3.1
go: downloading github.com/hashicorp/go-immutable-radix v1.0.0
go: extracting github.com/hashicorp/go-immutable-radix v1.0.0
go: extracting github.com/davecgh/go-spew v1.1.1
go: downloading cloud.google.com/go v0.34.0
go: extracting github.com/influxdata/influxdb v1.7.7
go: extracting k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
go: downloading golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading go.opencensus.io v0.20.2
go: downloading golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: extracting go.opencensus.io v0.20.2
go: extracting k8s.io/api v0.0.0-20190718183219-b59d8169aab5
go: extracting golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: downloading contrib.go.opencensus.io/exporter/ocagent v0.4.12
go: downloading github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: downloading github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34
go: extracting github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: extracting contrib.go.opencensus.io/exporter/ocagent v0.4.12
go: downloading github.com/modern-go/reflect2 v1.0.1
go: extracting github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: extracting github.com/modern-go/reflect2 v1.0.1
go: downloading k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7
go: extracting k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7
go: downloading github.com/google/go-cmp v0.3.0
go: downloading github.com/census-instrumentation/opencensus-proto v0.2.0
go: extracting github.com/google/go-cmp v0.3.0
go: extracting github.com/census-instrumentation/opencensus-proto v0.2.0
go: extracting cloud.google.com/go v0.34.0
go: downloading github.com/aws/aws-sdk-go v1.15.24
go: extracting github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34
go: extracting google.golang.org/api v0.3.2
go: downloading github.com/ghodss/yaml v1.0.0
go: downloading github.com/hashicorp/golang-lru v0.5.1
go: extracting github.com/ghodss/yaml v1.0.0
go: downloading golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: extracting github.com/hashicorp/golang-lru v0.5.1
go: extracting golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: extracting github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/googleapis/gnostic v0.2.0
go: extracting golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: extracting github.com/googleapis/gnostic v0.2.0
go: downloading github.com/prometheus/alertmanager v0.17.0
go: downloading github.com/evanphx/json-patch v4.1.0+incompatible
go: extracting github.com/evanphx/json-patch v4.1.0+incompatible
go: downloading github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: extracting github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: downloading sigs.k8s.io/yaml v1.1.0
go: extracting sigs.k8s.io/yaml v1.1.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: extracting gopkg.in/inf.v0 v0.9.1
go: downloading k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: extracting k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: downloading github.com/pmezard/go-difflib v1.0.0
go: extracting github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/julienschmidt/httprouter v1.2.0
go: extracting github.com/julienschmidt/httprouter v1.2.0
go: downloading github.com/go-openapi/strfmt v0.19.0
go: extracting github.com/go-openapi/strfmt v0.19.0
go: downloading github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329
go: extracting github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329
go: downloading github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
go: extracting github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
go: downloading github.com/go-openapi/errors v0.17.2
go: extracting github.com/go-openapi/errors v0.17.2
go: downloading github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
go: extracting github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
go: extracting github.com/Azure/azure-sdk-for-go v23.2.0+incompatible
go: extracting github.com/prometheus/alertmanager v0.17.0
go: downloading github.com/go-openapi/swag v0.17.2
go: downloading github.com/go-openapi/validate v0.17.2
go: extracting github.com/go-openapi/swag v0.17.2
go: extracting github.com/aws/aws-sdk-go v1.15.24
go: extracting github.com/go-openapi/validate v0.17.2
go: downloading github.com/go-openapi/jsonpointer v0.17.2
go: downloading github.com/go-openapi/runtime v0.18.0
go: extracting github.com/go-openapi/jsonpointer v0.17.2
go: downloading github.com/go-openapi/loads v0.17.2
go: extracting github.com/go-openapi/runtime v0.18.0
go: extracting github.com/go-openapi/loads v0.17.2
go: downloading github.com/go-openapi/spec v0.17.2
go: downloading github.com/go-openapi/analysis v0.17.2
go: extracting github.com/go-openapi/analysis v0.17.2
go: extracting github.com/go-openapi/spec v0.17.2
go: downloading github.com/go-openapi/jsonreference v0.17.2
go: extracting github.com/go-openapi/jsonreference v0.17.2
go: downloading github.com/PuerkitoBio/purell v1.1.0
go: extracting github.com/PuerkitoBio/purell v1.1.0
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: extracting github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7
go: downloading github.com/go-ini/ini v1.25.4
go: extracting github.com/go-ini/ini v1.25.4
go: extracting github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7

root@20ec4e634251:/go/prometheus# git status
On branch riscv-support
Your branch is up to date with 'origin/riscv-support'.

Go 1.13

➜ docker run -it --rm golang:1.13beta1-alpine3.10 sh

/go # git clone https://github.com/carlosedp/prometheus --depth=1 -b riscv-support
Cloning into 'prometheus'...
remote: Enumerating objects: 4426, done.
remote: Counting objects: 100% (4426/4426), done.
remote: Compressing objects: 100% (3140/3140), done.
remote: Total 4426 (delta 1131), reused 3412 (delta 971), pack-reused 0
commit 3cb797864d63da07ad08a8003e127af273bf2425 (grafted, HEAD -> riscv-support, origin/riscv-support)

/go # cd prometheus
/go/prometheus # git log
Author: CarlosEDP <me@carlosedp.com>
Date:   Mon Jul 29 13:05:52 2019 -0400

    Rebase

    Signed-off-by: CarlosEDP <me@carlosedp.com>

/go/prometheus # git status
On branch riscv-support
Your branch is up to date with 'origin/riscv-support'.

nothing to commit, working tree clean

/go/prometheus # go mod vendor
go: downloading github.com/pkg/errors v0.8.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: downloading github.com/opentracing/opentracing-go v1.0.2
go: downloading github.com/prometheus/client_golang v1.0.0
go: downloading github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b
go: downloading github.com/soheilhy/cmux v0.1.4
go: downloading github.com/prometheus/tsdb v0.10.0
go: downloading github.com/miekg/dns v1.1.10
go: downloading github.com/prometheus/common v0.4.1
go: extracting github.com/pkg/errors v0.8.1
go: downloading github.com/go-kit/kit v0.8.0
go: extracting github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371
go: downloading golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: extracting github.com/soheilhy/cmux v0.1.4
go: extracting github.com/shurcooL/vfsgen v0.0.0-20180825020608-02ddb050ef6b
go: downloading github.com/aws/aws-sdk-go v1.15.24
go: extracting github.com/opentracing/opentracing-go v1.0.2
go: downloading github.com/influxdata/influxdb v1.7.7
go: extracting github.com/go-kit/kit v0.8.0
go: extracting gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e
go: extracting github.com/prometheus/common v0.4.1
go: extracting github.com/prometheus/client_golang v1.0.0
go: extracting github.com/miekg/dns v1.1.10
go: extracting github.com/prometheus/tsdb v0.10.0
go: downloading golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: downloading golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go: downloading github.com/go-openapi/strfmt v0.19.0
go: extracting golang.org/x/net v0.0.0-20190724013045-ca1201d0de80
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: extracting golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
go: extracting github.com/gophercloud/gophercloud v0.0.0-20190301152420-fca40860790e
go: extracting github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223
go: downloading github.com/go-logfmt/logfmt v0.4.0
go: extracting github.com/go-openapi/strfmt v0.19.0
go: downloading github.com/gogo/protobuf v1.2.1
go: downloading github.com/beorn7/perks v1.0.0
go: downloading github.com/oklog/ulid v1.3.1
go: downloading github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329
go: extracting golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
go: extracting github.com/go-logfmt/logfmt v0.4.0
go: downloading github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7
go: extracting github.com/aws/aws-sdk-go v1.15.24
go: extracting github.com/opentracing-contrib/go-stdlib v0.0.0-20170113013457-1de4cc2120e7
go: extracting github.com/beorn7/perks v1.0.0
go: downloading gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: downloading github.com/Azure/go-autorest v11.2.8+incompatible
go: extracting github.com/oklog/ulid v1.3.1
go: downloading github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: extracting github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329
go: downloading github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34
go: extracting gopkg.in/fsnotify/fsnotify.v1 v1.4.7
go: downloading github.com/julienschmidt/httprouter v1.2.0
go: extracting github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: downloading github.com/go-openapi/errors v0.17.2
go: extracting github.com/gogo/protobuf v1.2.1
go: downloading google.golang.org/grpc v1.19.1
go: downloading github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading google.golang.org/appengine v1.5.0
go: extracting github.com/influxdata/influxdb v1.7.7
go: extracting github.com/Azure/go-autorest v11.2.8+incompatible
go: downloading github.com/prometheus/alertmanager v0.17.0
go: extracting github.com/julienschmidt/httprouter v1.2.0
go: downloading github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: downloading github.com/stretchr/testify v1.3.0
go: downloading cloud.google.com/go v0.34.0
go: extracting github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: downloading github.com/cespare/xxhash v1.1.0
go: extracting github.com/go-openapi/errors v0.17.2
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading google.golang.org/api v0.3.2
go: extracting github.com/cespare/xxhash v1.1.0
go: downloading github.com/prometheus/procfs v0.0.2
go: extracting github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
go: extracting github.com/stretchr/testify v1.3.0
go: extracting github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading contrib.go.opencensus.io/exporter/ocagent v0.4.12
go: extracting google.golang.org/grpc v1.19.1
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/grpc-ecosystem/grpc-gateway v1.8.5
go: extracting contrib.go.opencensus.io/exporter/ocagent v0.4.12
go: extracting github.com/prometheus/procfs v0.0.2
go: extracting github.com/golang/snappy v0.0.1
go: downloading github.com/census-instrumentation/opencensus-proto v0.2.0
go: downloading go.opencensus.io v0.20.2
go: extracting github.com/grpc-ecosystem/grpc-gateway v1.8.5
go: extracting github.com/prometheus/alertmanager v0.17.0
go: extracting cloud.google.com/go v0.34.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: extracting github.com/census-instrumentation/opencensus-proto v0.2.0
go: downloading github.com/Azure/azure-sdk-for-go v23.2.0+incompatible
go: extracting github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/go-openapi/swag v0.17.2
go: extracting go.opencensus.io v0.20.2
go: downloading golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: downloading golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: downloading github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: extracting google.golang.org/appengine v1.5.0
go: downloading github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
go: extracting github.com/go-openapi/swag v0.17.2
go: extracting golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: downloading github.com/golang/protobuf v1.3.1
go: downloading gopkg.in/yaml.v2 v2.2.2
go: extracting github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: extracting google.golang.org/api v0.3.2
go: extracting github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
go: downloading github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
go: extracting gopkg.in/yaml.v2 v2.2.2
go: extracting github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
go: downloading github.com/simonpasquier/klog-gokit v0.1.0
go: extracting github.com/golang/protobuf v1.3.1
go: downloading google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/simonpasquier/klog-gokit v0.1.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
go: downloading github.com/ghodss/yaml v1.0.0
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/go-ini/ini v1.25.4
go: extracting github.com/pmezard/go-difflib v1.0.0
go: downloading golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: extracting github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
go: extracting golang.org/x/tools v0.0.0-20190312170243-e65039ee4138
go: downloading github.com/oklog/run v1.0.0
go: downloading github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: extracting github.com/ghodss/yaml v1.0.0
go: extracting github.com/go-ini/ini v1.25.4
go: downloading golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: extracting github.com/oklog/run v1.0.0
go: downloading github.com/hashicorp/consul/api v1.1.0
go: extracting github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
go: extracting github.com/hashicorp/consul/api v1.1.0
go: extracting golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
go: extracting github.com/google/pprof v0.0.0-20180605153948-8b03ce837f34
go: extracting google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19
go: downloading github.com/hashicorp/serf v0.8.2
go: extracting golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db
go: downloading github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7
go: downloading github.com/go-openapi/validate v0.17.2
go: downloading github.com/hashicorp/golang-lru v0.5.1
go: downloading k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
go: downloading golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: downloading k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
go: extracting github.com/hashicorp/golang-lru v0.5.1
go: extracting github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7
go: extracting github.com/hashicorp/serf v0.8.2
go: downloading k8s.io/api v0.0.0-20190718183219-b59d8169aab5
go: extracting k8s.io/apimachinery v0.0.0-20190612205821-1799e75a0719
go: extracting github.com/go-openapi/validate v0.17.2
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: extracting k8s.io/client-go v0.0.0-20190620085101-78d2af792bab
go: extracting github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/go-openapi/jsonpointer v0.17.2
go: downloading github.com/go-openapi/runtime v0.18.0
go: extracting github.com/Azure/azure-sdk-for-go v23.2.0+incompatible
go: extracting github.com/go-openapi/jsonpointer v0.17.2
go: downloading github.com/go-openapi/spec v0.17.2
go: extracting github.com/go-openapi/runtime v0.18.0
go: extracting github.com/go-openapi/spec v0.17.2
go: downloading k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7
go: extracting k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7
go: extracting golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c
go: extracting k8s.io/api v0.0.0-20190718183219-b59d8169aab5
go: downloading github.com/go-openapi/jsonreference v0.17.2
go: downloading github.com/googleapis/gnostic v0.2.0
go: downloading github.com/json-iterator/go v1.1.6
go: downloading github.com/go-openapi/loads v0.17.2
go: downloading github.com/go-openapi/analysis v0.17.2
go: downloading github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: downloading sigs.k8s.io/yaml v1.1.0
go: extracting github.com/go-openapi/jsonreference v0.17.2
go: downloading github.com/modern-go/reflect2 v1.0.1
go: extracting github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
go: extracting github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf
go: extracting gopkg.in/inf.v0 v0.9.1
go: extracting sigs.k8s.io/yaml v1.1.0
go: downloading github.com/hashicorp/go-rootcerts v1.0.0
go: downloading github.com/PuerkitoBio/purell v1.1.0
go: downloading github.com/google/go-cmp v0.3.0
go: downloading github.com/hashicorp/go-immutable-radix v1.0.0
go: extracting github.com/go-openapi/loads v0.17.2
go: extracting github.com/json-iterator/go v1.1.6
go: extracting github.com/davecgh/go-spew v1.1.1
go: downloading k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/evanphx/json-patch v4.1.0+incompatible
go: extracting github.com/go-openapi/analysis v0.17.2
go: extracting github.com/modern-go/reflect2 v1.0.1
go: extracting github.com/PuerkitoBio/purell v1.1.0
go: extracting github.com/hashicorp/go-rootcerts v1.0.0
go: extracting github.com/hashicorp/go-immutable-radix v1.0.0
go: downloading github.com/mitchellh/go-homedir v1.0.0
go: extracting github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: extracting github.com/evanphx/json-patch v4.1.0+incompatible
go: extracting github.com/google/go-cmp v0.3.0
go: extracting github.com/mitchellh/go-homedir v1.0.0
go: extracting github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: extracting k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30
go: extracting github.com/googleapis/gnostic v0.2.0

/go/prometheus # git status
On branch riscv-support
Your branch is up to date with 'origin/riscv-support'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	deleted:    vendor/github.com/globalsign/mgo/bson/bson_corpus_spec_test_generator.go
	deleted:    vendor/github.com/miekg/dns/duplicate_generate.go
	deleted:    vendor/github.com/miekg/dns/msg_generate.go
	deleted:    vendor/github.com/miekg/dns/types_generate.go
	deleted:    vendor/golang.org/x/net/internal/iana/gen.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_aix.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_darwin.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_dragonfly.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_freebsd.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_linux.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_netbsd.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_openbsd.go
	deleted:    vendor/golang.org/x/net/internal/socket/defs_solaris.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_aix.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_darwin.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_dragonfly.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_freebsd.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_linux.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_netbsd.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_openbsd.go
	deleted:    vendor/golang.org/x/net/ipv4/defs_solaris.go
	deleted:    vendor/golang.org/x/net/ipv4/gen.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_aix.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_darwin.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_dragonfly.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_freebsd.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_linux.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_netbsd.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_openbsd.go
	deleted:    vendor/golang.org/x/net/ipv6/defs_solaris.go
	deleted:    vendor/golang.org/x/net/ipv6/gen.go
	deleted:    vendor/golang.org/x/sys/unix/mkasm_darwin.go
	deleted:    vendor/golang.org/x/sys/unix/mkpost.go
	deleted:    vendor/golang.org/x/sys/unix/mksyscall.go
	deleted:    vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.go
	deleted:    vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.go
	deleted:    vendor/golang.org/x/sys/unix/mksyscall_solaris.go
	deleted:    vendor/golang.org/x/sys/unix/mksysctl_openbsd.go
	deleted:    vendor/golang.org/x/sys/unix/mksysnum.go
	deleted:    vendor/golang.org/x/sys/unix/types_aix.go
	deleted:    vendor/golang.org/x/sys/unix/types_darwin.go
	deleted:    vendor/golang.org/x/sys/unix/types_dragonfly.go
	deleted:    vendor/golang.org/x/sys/unix/types_freebsd.go
	deleted:    vendor/golang.org/x/sys/unix/types_netbsd.go
	deleted:    vendor/golang.org/x/sys/unix/types_openbsd.go
	deleted:    vendor/golang.org/x/sys/unix/types_solaris.go
	deleted:    vendor/golang.org/x/text/unicode/bidi/gen.go
	deleted:    vendor/golang.org/x/text/unicode/bidi/gen_ranges.go
	deleted:    vendor/golang.org/x/text/unicode/bidi/gen_trieval.go
	deleted:    vendor/golang.org/x/text/unicode/norm/maketables.go
	deleted:    vendor/golang.org/x/text/unicode/norm/triegen.go
	deleted:    vendor/golang.org/x/text/width/gen.go
	deleted:    vendor/golang.org/x/text/width/gen_common.go
	deleted:    vendor/golang.org/x/text/width/gen_trieval.go
	deleted:    vendor/golang.org/x/tools/go/gcexportdata/main.go
	deleted:    vendor/golang.org/x/tools/imports/mkindex.go
	deleted:    vendor/golang.org/x/tools/imports/mkstdlib.go
	modified:   vendor/modules.txt

no changes added to commit (use "git add" and/or "git commit -a")

What did you expect to see?

The modules should be kept intact in vendor dir on version 1.13.

What did you see instead?

Many files removed as seen above in git status command for 1.13.

@zikaeroh

This comment has been minimized.

Copy link

@zikaeroh zikaeroh commented Jul 29, 2019

You may want to look at #31088.

@carlosedp

This comment has been minimized.

Copy link
Author

@carlosedp carlosedp commented Jul 29, 2019

Got it, so to my understanding, projects that will do CI with multiple Go versions including 1.13 and ship the vendor will need to re-vendor? Any flag on 1.13 to keep previous behaviour?

@julieqiu

This comment has been minimized.

Copy link

@julieqiu julieqiu commented Jul 29, 2019

@julieqiu julieqiu changed the title Go mod vendor removes files in 1.13 that were present on 1.12 cmd/go: go mod vendor removes files in 1.13 that were present on 1.12 Jul 29, 2019
@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Jul 29, 2019

You should not need to re-vendor: all go build and go test commands that worked in 1.12 should continue to work as before.

That is: the removed files should be irrelevant to the build. If you find otherwise, please provide more detail.

@bcmills bcmills added this to the Go1.13 milestone Jul 29, 2019
@carlosedp

This comment has been minimized.

Copy link
Author

@carlosedp carlosedp commented Jul 29, 2019

Currently I've seen this on Prometheus repo where I ran "go mod vendor" on Go 1.13 and pushed the changes. Their CI runs and returns error since they compare a "go mod vendor" ran on 1.11 or 1.12 with the PR that has less files.

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Jul 30, 2019

If that's the only symptom, probably they should update that CI script to not make assumptions about irrelevant files, or update their contributing instructions to be more explicit about the go version to use for pre-commit cleanup.

@carlosedp

This comment has been minimized.

Copy link
Author

@carlosedp carlosedp commented Jul 30, 2019

@bcmills I totally agree with you, I'll try to get in touch with them pointing this out.
Thanks!

@bcmills

This comment has been minimized.

Copy link
Member

@bcmills bcmills commented Jul 30, 2019

Thanks. It sounds like everything is working as designed for #31088, but please do let us know if you encounter other symptoms that were not intended (such as broken go build or go test commands).

@simonpasquier

This comment has been minimized.

Copy link

@simonpasquier simonpasquier commented Jul 30, 2019

If that's the only symptom, probably they should update that CI script to not make assumptions about irrelevant files, or update their contributing instructions to be more explicit about the go version to use for pre-commit cleanup.

Thanks. We already document which Go version should be used but we'll probably issue an extra announcement to our -dev list to raise awareness. As for the CI, it runs against only one version of Go so we'll only have to update the vendor/ directory when we'll be switching the CI to 1.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.