nikivi Posted November 17, 2016 Share Posted November 17, 2016 (edited) I want to use a library to make a workflow but every time I get an error : [2016-11-17 11:04:51][ERROR: input.scriptfilter] Code 1: read.go:4:2: cannot find package "gogs.deanishe.net/deanishe/awgo" in any of: /usr/local/Cellar/go/1.7.3/libexec/src/gogs.deanishe.net/deanishe/awgo (from $GOROOT) ($GOPATH not set) I couldn't find anywhere how I can export my $GOPATH in Alfred. I have it set properly in my zshrc and it works well everywhere else. I also believe I downloaded the library properly with go run as that produced no error logs. Thank you for any help. Edited November 17, 2016 by nikivi Link to comment
mul14 Posted November 17, 2016 Share Posted November 17, 2016 (edited) Have you tried configure environment variables from [?] ? https://www.alfredapp.com/help/workflows/advanced/variables/ Edited November 17, 2016 by mul14 Add URL to https://www.alfredapp.com/help/workflows/advanced/variables/ nikivi 1 Link to comment
nikivi Posted November 17, 2016 Author Share Posted November 17, 2016 Thank you mul14, This works now. It's just that I looked at other workflows that use this library and neither of them had set their GOPATH in variables. But it works now, so that's great. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now