Closed giordano closed 1 year ago
@ararslan aarch64 is failing with
cirrusjl build
/tmp/scripts9566c74d10037c4d7bbb0407d1e2c649.sh: line 5: cirrusjl: command not found
Exit status: 127
Hm. Is the wget
invocation incorrect maybe so sh -c
isn't doing anything? The installation step in the Cirrus log should have a lot of output but it has nothing.
Looks like it doesn't have curl
nor wget
?
I thought wget
was always available on Linux. Even Alpine as it by default, so it's crazy to me that Ubuntu wouldn't...
It depends on what they put in the image. The standard Ubuntu installation should come with wget, but maybe they provide a stripped down environment?
AFAIK (arm_)container: ubuntu:latest
should be the official Ubuntu Docker image. According to one of the folks from Cirrus, the Cirrus Agent bootstraps itself in a very similar way as this. He specifically showed me the following code:
download_agent() {
if [ -x "$(command -v wget)" ]; then
echo "Trying to download regularly via wget"
wget -t 0 "$agentUrl" -O $AGENT_LOCATION
elif [ -x "$(command -v curl)" ]; then
echo "Trying to download regularly via curl"
curl --retry 10 --location "$agentUrl" -o $AGENT_LOCATION
else
exit 1
fi
chmod +x $AGENT_LOCATION
}
But I wonder if there's some fallback since the echo
es there say "regularly." I guess they must also figure out how to download... irregularly.
I think that if I can get https://github.com/ararslan/CirrusCI.jl/pull/14 fully functional in the way that I'm hoping, it will obviate the need for the checks on commands being available. Big if true, as they say.
@ararslan
-e �[0;34m[CIRRUSCI.JL]�[0m: Downloading Julia from https://julialangnightlies-s3.julialang.org/bin/linux/aarch64/julia-latest-linuxaarch64.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
https://github.com/JuliaLang/www.julialang.org/pull/1752 is probably relevant
CC @ararslan