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

Update readme to install skipper #878

Closed
wants to merge 2 commits into from

Conversation

kostspielig
Copy link
Contributor

To install skipper without having the source with the .mod file the flag should not be on

readme.md Outdated
@@ -62,7 +62,7 @@ Skipper is 'go get' compatible. If needed, create a Go workspace first:

Get the Skipper packages:

GO111MODULE=on go get github.com/zalando/skipper/...
GO111MODULE=auto go get github.com/zalando/skipper/...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't auto the default?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@aryszka
Copy link
Contributor

aryszka commented Dec 11, 2018

this PR is a very recent change: https://github.com/zalando/skipper/pull/872/files

can you discuss with @szuecs the problem and the best approach here?

@aryszka
Copy link
Contributor

aryszka commented Dec 11, 2018

i just tested this, and both without the flag and with 'on', and neither really works. I expect that the current working directory needs to be the skipper repo. We probably need to document this after testing that it works.

@kostspielig
Copy link
Contributor Author

Both options seem to give errors then:

✓ maria ~/go $ GO111MODULE=on go get github.com/zalando/skipper/...
go: cannot find main module; see 'go help modules'

Without modules it installs but seems to use the incorrect version of the libraries

✓ maria ~/go $ go get -u github.com/zalando/skipper/...
# github.com/uber/jaeger-client-go
src/github.com/uber/jaeger-client-go/metrics.go:100:35: too many arguments in call to factory.Namespace
	have (string, nil)
	want (metrics.NSOptions)

Maybe the best option then is to clone the repo and download dependencies with GO111MODULE on then?

@szuecs
Copy link
Member

szuecs commented Dec 11, 2018

@kostspielig maybe you can find out why go get breaks in case of GO111MODULE=on?

@szuecs
Copy link
Member

szuecs commented Dec 11, 2018

#871 (comment) said that it worked. Maybe a Mac issue?
Does it work if you clone the repository and use GO111MODULE=on go get github.com/zalando/skipper/... ?

@szuecs
Copy link
Member

szuecs commented Dec 11, 2018

% GO111MODULE=on go get github.com/zalando/skipper/...
go: creating new go.mod: module github.com/szuecs/dotfiles
go: finding github.com/zalando/skipper/... latest
go get github.com/zalando/skipper/...: no matching versions for query "latest"
zsh: exit 1     GO111MODULE=on go get github.com/zalando/skipper/...

% GO111MODULE=on go get github.com/zalando/skipper
go: finding github.com/cenkalti/backoff v2.1.0+incompatible
go: downloading github.com/cenkalti/backoff v2.1.0+incompatible
% GO111MODULE=on go get github.com/zalando/skipper/...
# github.com/zalando/skipper/skptesting
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit.tbd and library file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit are out of sync. Falling back to library file for linking.
# github.com/zalando/skipper/cmd/skipper
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit.tbd and library file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit are out of sync. Falling back to library file for linking.

% ls -l $GOBIN/skipper
-rwxr-xr-x  1 sszuecs  staff  21339556 Dec 11 22:54 /Users/sszuecs/go/bin/skipper*

% uname -a
Darwin uho.local 17.7.0 Darwin Kernel Version 17.7.0: Fri Nov  2 20:43:16 PDT 2018; root:xnu-4570.71.17~1/RELEASE_X86_64 x86_64

% go env
GOARCH="amd64"
GOBIN="/Users/sszuecs/go/bin"
GOCACHE="/Users/sszuecs/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sszuecs/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/sszuecs/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=/var/folders/22/hffqd9zj5dx0b2b07z6c0b980000gq/T/go-build958763120=/tmp/go-build -gno-record-gcc-switches -fno-common"

@kostspielig
Copy link
Contributor Author

kostspielig commented Dec 12, 2018

@szuecs I use linux, but we got the same results yesterday with mac too.

The issue appears when you try to use the go get command to get the source files without cloning the repository (in a folder that does not contain go.mod). If I clone the repo and execute the command inside it works correctly. I guess this is a known issue here

Shall we update the readme in this case to do clone and then GO111MODULE=on go get github.com/zalando/skipper/... ?

@szuecs
Copy link
Member

szuecs commented Dec 12, 2018

Yes, please update the docs and link the "why".

@kostspielig
Copy link
Contributor Author

@szuecs were you able to reproduce or it worked for you outside the repo?

@szuecs
Copy link
Member

szuecs commented Dec 12, 2018

@kostspielig for me it worked as I showed on a mac in a blank directory which was not in $GOPATH.
It's fine to tell git clone + make, I think

@szuecs
Copy link
Member

szuecs commented Jan 2, 2019

@kostspielig do you want to work on this or should we close it?

@szuecs szuecs added the wip work in progress label Jan 2, 2019
@szuecs
Copy link
Member

szuecs commented Jul 19, 2019

There was no answer after 6 months so close

@szuecs szuecs closed this Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants