Skip to content

Commit 9d0a766

Browse files
authored
Merge pull request #4096 from AkihiroSuda/fix-4094
CI: FreeBSD: fix "No packages available to install matching ..."
2 parents 8d8c8eb + e6283c0 commit 9d0a766

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Vagrantfile.freebsd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Vagrant.configure("2") do |config|
3636
sh.inline = <<~SHELL
3737
#!/usr/bin/env bash
3838
set -eux -o pipefail
39+
freebsd-version -kru
40+
# switching to "release_2" ensures compatibility with the current Vagrant box
41+
# https://github.com/moby/buildkit/pull/5893
42+
sed -i '' 's/latest/release_2/' /usr/local/etc/pkg/repos/FreeBSD.conf
3943
# `pkg install go` still installs Go 1.20 (March 2024)
4044
pkg install -y go122 containerd runj
4145
ln -s go122 /usr/local/bin/go

0 commit comments

Comments
 (0)