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

Minimuim Go requirement? Compile fails on RHEL7 with Go 1.3.3 #29

Open
mpwalsh8 opened this issue Sep 16, 2018 · 1 comment
Open

Minimuim Go requirement? Compile fails on RHEL7 with Go 1.3.3 #29

mpwalsh8 opened this issue Sep 16, 2018 · 1 comment

Comments

@mpwalsh8
Copy link

Is there a minimum version of Go required to build this? I get the following compile errors running on RHEL7 with go1.3.3 (which comes from the RHEL7 repo):

[xpi@localhost linux-bing-wallpaper]$ go build bing-wallpaper.go
# command-line-arguments
./bing-wallpaper.go:458: syntax error: unexpected range, expecting {
./bing-wallpaper.go:474: non-declaration statement outside function body
./bing-wallpaper.go:475: non-declaration statement outside function body
./bing-wallpaper.go:484: non-declaration statement outside function body
./bing-wallpaper.go:486: non-declaration statement outside function body
./bing-wallpaper.go:487: syntax error: unexpected }
[xpi@localhost linux-bing-wallpaper]$ go version
go version go1.3.3 linux/amd64
[xpi@localhost linux-bing-wallpaper]$ 
@marguerite
Copy link
Owner

@mpwalsh8

well go 1.3.3 is pretty old. frankly I didn't notice the version requirement at all. on my openSUSE Tumbleweed, the current go version is 1.9.7, and the go version when I wrote these codes must be 1.5+ because it's less than a year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants