-
Notifications
You must be signed in to change notification settings - Fork 198
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
go run
fails
#1303
Comments
Most of the build environment is read-only. You could try setting GOCACHE to a subdirectory of the target directory in your build script. |
My thinking is that it would make sense to set GOCACHE to some reasonable value for all docs.rs builds; I can't think of a reason that it would need to be specific to Mundane? |
Hmm, I wonder if it makes sense rather than fixing GOCACHE specifically to set HOME to a temporary directory. |
That makes sense too, although I'd be worried about that having more wide-ranging implications (much more software uses |
Note that this is blocked on a rustwide update one way or another: #1278 |
I'm not sure I understand why the change we're discussing here is blocked on #1278? Is it just that all docs.rs deployments are blocked on it? |
Docs.rs doesn't set any of these variables itself, they're set through rustwide. Rustwide 0.12 has switched to tokio 1.0, and I'm not willing to have over 600 dependencies just to fix this bug. |
Ah, I understand, gotcha. |
@joshlf go fails even with
|
You could vendor the sources, but we will not lift the network restriction for any crate. |
@joshlf are you planning to follow up on this? I'm willing to set HOME, but only if it actually helps crates build, otherwise there doesn't seem to be much point. |
Closing this since this isn't something we can fix. |
The docs.rs environment has golang installed, but doesn't have the environment variables needed to make it actually work: rust-lang/docs.rs#1303 So avoid that entirely.
The docs.rs environment has golang installed, but doesn't have the environment variables needed to make it actually work: rust-lang/docs.rs#1303 So avoid that entirely.
Crate name: mundane
Build failure link: https://docs.rs/crate/mundane/0.4.4/builds/357678
Additional details: Based on the following log output, I believe what's happening is that, since the
GOCACHE
environment variable is not set,go run
is defaulting to$HOME/.cache
, and I'm guessing that$HOME
is set to/
. This means thatgo run
tries creating/.cache
, which it doesn't have permission to do. See here for more details on Go's build cache.The text was updated successfully, but these errors were encountered: