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

Permission denied error with cimg/go:1.16, cimg/go:1.16-browsers, cimg/go:1.17 #158

Closed
HolimaX opened this issue Mar 7, 2022 · 2 comments · Fixed by #165
Closed

Permission denied error with cimg/go:1.16, cimg/go:1.16-browsers, cimg/go:1.17 #158

HolimaX opened this issue Mar 7, 2022 · 2 comments · Fixed by #165

Comments

@HolimaX
Copy link

HolimaX commented Mar 7, 2022

Issue with cimg/go:1.16, cimg/go:1.17:

Using SSH Config Dir '/home/circleci/.ssh'
git version 2.34.1
Cloning git repository
mkdir: cannot create directory ‘/go’: Permission denied

exit status 1
CircleCI received exit code 1


Similar issue when using cimg/go:1.16-browsers

Unable to create directory '/go/src/github.com/HolimaX/libcontimig': mkdir /go: permission denied

@HolimaX HolimaX changed the title Permission denied error with cimg/go:1.16.15 Permission denied error with cimg/go:1.16, cimg/go:1.16-browsers, cimg/go:1.17 Mar 7, 2022
@HolimaX
Copy link
Author

HolimaX commented Mar 7, 2022

Fixed by changing old working_directory path to new one with /home/circleci prefix instead of /go as it was prior to #52

Either way, ### PLEASE UPDATE README to highlight that working_directory must be matching the docker containers GOPATH parameter!!!

@FelicianoTech
Copy link
Contributor

Btw, working_directory doesn't need to be set at all for this image to be used.

Thanks for this report though. We'll get the readme here updated with this note and something added to the legacy convenience image deprecation post in the forum.

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

Successfully merging a pull request may close this issue.

2 participants