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

Unable to build #3

Closed
chrisrossi opened this issue Jun 14, 2019 · 1 comment
Closed

Unable to build #3

chrisrossi opened this issue Jun 14, 2019 · 1 comment

Comments

@chrisrossi
Copy link

chrisrossi commented Jun 14, 2019

I've never tried to build anything with GO so maybe I'm missing something. GO was installed using apt install golang on Ubuntu 16.04.

Here's what I get running build.sh:

chris@opportunity:~/svglinkify$ sh build.sh 
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart
# _/home/chris/svglinkify
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart

Here's what I get just trying to us go build on its own:

chris@opportunity:~/svglinkify$ go build main.go 
# command-line-arguments
./main.go:84: flag.CommandLine.Output undefined (type *flag.FlagSet has no field or method Output, but does have flag.output)
./main.go:247: undefined: strings.Builder
./main.go:364: undefined: io.SeekEnd
./main.go:374: undefined: io.SeekStart
./main.go:382: undefined: io.SeekStart
./main.go:389: undefined: io.SeekStart
./main.go:396: undefined: io.SeekStart
./main.go:416: undefined: io.SeekStart

Clearly some dependency isn't being found, but I'm not familiar with how GO manages dependencies. I was hoping the build.sh script would "just work" (TM).

@chrisrossi
Copy link
Author

Ah, I needed to download a more recent version of GO.

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

1 participant