diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-10-30 19:41:22 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2019-10-30 19:41:22 +0100 |
| commit | ca3468768d234af5de4fe7b578b701e3404a6dac (patch) | |
| tree | 57f6d40ad128a058681ec7f696abb3b942ab740a /src/libstd/sys/unix/stack_overflow.rs | |
| parent | bdfcde439bcea75d74fe3b181d13332384daf130 (diff) | |
| download | rust-ca3468768d234af5de4fe7b578b701e3404a6dac.tar.gz rust-ca3468768d234af5de4fe7b578b701e3404a6dac.zip | |
ci: move toolstates.json to /tmp/toolstate/ and docker mount it
Before this commit toolstates.json was stored in /tmp and it wasn't mounted outside the build container. That caused uploading the file in the upload-artifacts task to fail, as the file was missing on the host. Mounting /tmp/toolstates.json alone is not the best approach: if the file is missing when the container is started the Docker engine will create a *directory* named /tmp/toolstates.json. The Docker issue could be solved by pre-creating an empty file named /tmp/toolstates.json, but doing that could cause problems if bootstrap fails to generate the file and the toolstate scripts receive an empty JSON. The approach I took in this commit is to instead mount a /tmp/toolstate directory inside Docker, and create the toolstates.json file in it. That also required a small bootstrap change to ensure the directory is created if it's missing.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
