Can't import github.com/bitrise-tools/go-steputils/stepconf in go script

#1

Trying to run a go script to do some string manipulation on some environment variable but I can’t seem to import stepconf for making the environment variable accessible in the script. I get the error below;

cannot find package "github.com/bitrise-tools/go-steputils/stepconf" in any of:
	/usr/local/go/src/github.com/bitrise-tools/go-steputils/stepconf (from $GOROOT)
	/bitrise/go/src/github.com/bitrise-tools/go-steputils/stepconf (from $GOPATH)

Step taken: Added:

deps:
          go get -u:
          - name: github.com/bitrise-tools/go-steputils/stepconf
0 Likes

#2

Hello, the correct path is

github.com/bitrise-io/go-steputils/stepconf

that is bitrise-io instead of bitirise-tools.

Would recommend using dep or go modules for dependency management, so they are vendored and not dependent on the $GOPATH env.

0 Likes

#3

Hi @laszlo.pusok. I did this but it still didn’t work. Posting screenshots so you can point out what I’m doing wrong. I’ve also tried apt-get and brew but nothing seems to work

0 Likes

#4

0 Likes

#5

0 Likes