edwinakatosh / go-bamboo-plugin

Plugin for Atlassian Bamboo that adds support for Go language projects
Apache License 2.0
19 stars 4 forks source link

Cannot use flags #15

Closed yamikuronue closed 7 years ago

yamikuronue commented 7 years ago

This might be me, but when I try to do something like:

'./... -linkmode external -extldflags "-static"'

as the package mode, I get errors like

17-Mar-2017 14:13:22    can't load package: package -linkmode: cannot find package "-linkmode" in any of:
17-Mar-2017 14:13:22            /usr/local/go/src/-linkmode (from $GOROOT)
17-Mar-2017 14:13:22            /opt/bamboo-agent/agent1/xml-data/build-dir/ION-ION-JOB1/src/-linkmode (from $GOPATH)
17-Mar-2017 14:13:22    can't load package: package external: cannot find package "external" in any of:
17-Mar-2017 14:13:22            /usr/local/go/src/external (from $GOROOT)
17-Mar-2017 14:13:22            /opt/bamboo-agent/agent1/xml-data/build-dir/ION-ION-JOB1/src/external (from $GOPATH)
17-Mar-2017 14:13:22    can't load package: package -extldflags: cannot find package "-extldflags" in any of:
17-Mar-2017 14:13:22            /usr/local/go/src/-extldflags (from $GOROOT)
17-Mar-2017 14:13:22            /opt/bamboo-agent/agent1/xml-data/build-dir/ION-ION-JOB1/src/-extldflags (from $GOPATH)
17-Mar-2017 14:13:22    can't load package: package "-static"': cannot find package "\"-static\"'" in any of:
17-Mar-2017 14:13:22            /usr/local/go/src/"-static"' (from $GOROOT)
17-Mar-2017 14:13:22            /opt/bamboo-agent/agent1/xml-data/build-dir/ION-ION-JOB1/src/"-static"' (from $GOPATH)

This happens with and without quotes, with any flag I've tried. Is something wrong with the plugin or is it me?

handcraftedbits commented 7 years ago

I believe this is a dup of #14.