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

Commit 947c83b... breaks with go1.6 #2584

Closed
jayeye opened this Issue Apr 6, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@jayeye
Copy link

jayeye commented Apr 6, 2017

I tried building from master (5f764d9...) on a machine with go1.6 (the default for ubuntu server 16.04), and got

# github.com/prometheus/prometheus/web
go/src/github.com/prometheus/prometheus/web/web.go:383: undefined: sort.Slice 

I knew I had successfully built in v1.5.2 (bd1182d...). git bisect is my second-best friend, and shows me that the offending commit is 947c83b..., which according to the log followed shortly after an upgrade to go1.8 (5f764d9... builds fine with go1.8).

If compatibility with older versions of go is required, maybe someone should look into this before the next release is cut.

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Apr 6, 2017

It has been explicitly decided that we can break compat with 1.6.
See: #2548 (comment) and #2548 (comment)

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 6, 2017

Yes, we worry about compat for client_golang but not anything else.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.