about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-10-30 19:41:22 +0100
committerPietro Albini <pietro@pietroalbini.org>2019-10-30 19:41:22 +0100
commitca3468768d234af5de4fe7b578b701e3404a6dac (patch)
tree57f6d40ad128a058681ec7f696abb3b942ab740a /src/libstd/sys/unix/stack_overflow.rs
parentbdfcde439bcea75d74fe3b181d13332384daf130 (diff)
downloadrust-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