Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Using vscode-go from multiple user accounts clashes on /tmp/go-code-check #1829

Closed
lmb opened this issue Aug 8, 2018 · 4 comments
Closed

Comments

@lmb
Copy link

lmb commented Aug 8, 2018

Steps to Reproduce:

  1. On a system where TMPDIR is shared for the whole machine (e.g. Ubuntu)
  2. Create two user accounts A and B
  3. Work on Go code with A
  4. Switch to user B, work on Go code
  5. Observe error message
go build package/name: open /tmp/go-code-check: permission denied
$ ls -lh /tmp/go-code-check
-rw-rw-r-- 1 private private 173K Aug  7 22:54 /tmp/go-code-check

I believe this is due to https://github.com/Microsoft/vscode-go/blob/a1b8648a0b2ef5858669fa648a438f79c668f256/src/goBuild.ts#L59 assuming that TMP is exclusive to a user, which isn't the case on a default Ubuntu install.

@ramya-rao-a
Copy link
Contributor

What do you suggest we do instead?

@lmb
Copy link
Author

lmb commented Aug 9, 2018 via email

@ramya-rao-a
Copy link
Contributor

Thanks for logging this issue @lmb and Thanks for the PR @rikkuness! Your fix is now available in the latest update (0.6.86) to the Go extension

@lmb
Copy link
Author

lmb commented Aug 14, 2018 via email

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants