Hello,
Without changing anything builds started failing. When looking at the logs the reason is that Swift can not be intalled. I tried version 5.7, 5.9 and 5.4 (which is the default when no `.swift-version` file exists. How can I solve this?
Here is an example log of the failure:
6:09:52 PM: build-image version: cbbb2660d860fe70694043ec05851a3910a2bf39 (noble-new-builds)
6:09:52 PM: buildbot version: d9608268fa3784a91ae99b736382b065f0910292
6:09:53 PM: Building without cache
6:09:53 PM: Starting to prepare the repo for build
6:09:53 PM: No cached dependencies found. Cloning fresh repo
6:09:53 PM: git clone --filter=blob:none https://github.com/pietropizzi/peterminarikdotcom
6:09:53 PM: Preparing Git Reference refs/heads/master
6:09:55 PM:
❯ Initial build environment
baseRelDir: true
branch: master
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: 7e1a6ab8-3e21-4c6b-b331-c6495342e94c
❯ UI build settings
baseRelDir: true
build:
command: swift run
environment:
- NETLIFY_BUILD_DEBUG
publish: Output
❯ Resolved build environment
branch: master
buildDir: /opt/build/repo
configPath: /opt/build/repo/netlify.toml
context: production
env: []
❯ Resolved config
build:
command: swift run
commandOrigin: ui
environment:
- NETLIFY_BUILD_DEBUG
publish: /opt/build/repo/Output
publishOrigin: ui
redirects:
- from: /blog
to: /
- from: /blog/*
to: /
- from: /work
to: /
- from: /js/script.js
status: 200
to: https://plausible.io/js/script.js
- from: /api/event
status: 200
to: https://plausible.io/api/event
redirectsOrigin: config
6:09:56 PM: Installing dependencies
6:09:56 PM: mise ~/.config/mise/config.toml tools: python@3.14.3
6:09:56 PM: mise ~/.config/mise/config.toml tools: ruby@3.4.8
6:09:56 PM: mise ~/.config/mise/config.toml tools: go@1.26.2
6:09:56 PM: Downloading https://download.swift.org/swift-5.4-release/ubuntu2404/swift-5.4-RELEASE/swift-5.4-RELEASE-ubuntu24.04.tar.gz
6:09:56 PM: /tmp/swiftenv-5.4- /opt/build/repo
6:09:56 PM: % Total % Received % Xferd Average Speed Time Time Time Current
6:09:56 PM: Dload Upload Total Spent Left Speed
6:09:56 PM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
6:09:56 PM: 100 182 100 182 0 0 1875 0 --:--:-- --:--:-- --:--:-- 1895
6:09:56 PM: 100 257 100 257 0 0 1448 0 --:--:-- --:--:-- --:--:-- 1448
6:09:57 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
6:09:57 PM: 100 146 100 146 0 0 469 0 --:--:-- --:--:-- --:--:-- 469
6:09:57 PM: gzip: stdin: not in gzip format
6:09:57 PM: tar: Child returned status 1
6:09:57 PM: tar: Error is not recoverable: exiting now
6:09:57 PM: Failed to install Swift version '5.4'
6:09:57 PM: Failing build: Failed to install dependencies
Site name: https://peterminarik.netlify.app/