CIRCLE_PROJECT_REPONAME expanding twice

go
envars

#1

I’m trying to use the CIRCLE_PROJECT_REPONAME environment variable, but it appears to be expanding twice. Here’s a command I’m trying to run:

ln -s ${HOME}/${CIRCLE_PROJECT_REPONAME} ${HOME}/.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}

And here’s the error I get:

ln: failed to create symbolic link `/home/ubuntu/.go_workspace/src/github.com/<omitted org name>/<omitted reponame>/<omitted reponame>': File exists

As far as I can tell, this was working earlier this morning, and then all of a sudden started giving me this error.


#2

I was interpreting the error incorrectly. The ln command was trying to place the new link under the location that I wanted the link to be at. Carry on!


#3