Open ddribin opened 5 months ago
I noticed the same issue. It applies both for HashiCorps' cloud (tested with ubuntu/noble64
) and a local Artifactory repository. Applying the --global
flag results in the expected behaviour for both cases.
Edit vagrant box update
seems to have the same issue, with the exception that there's no --global
flag, so updating a box is currently no possible.
I ended up destroying all my boxes and starting over fresh, and it pulled the most current versions.,
This is still an issue and annoying. Currently using bento/ubuntu-22.04-arm64
and was at 20230630 version and update / outdated was showing it's current version. Doing the curl command manually would show the new versions but the parsing engine obviously wouldn't pick it up.
My two work arounds:
vagrant box update --box bento/ubuntu-22.04-arm64
and it would update correctly (because it's a global box maybe?)Edit: Only thing I can think of for me, the box version I was stuck on used an "unknown" architecture where the newer versions were tagged wth "arm64". My update would show:
==> dev-vagrant: Checking for updates to 'bento/ubuntu-22.04-arm64'
ps-dev-vagrant: Latest installed version: 202306.28.0
ps-dev-vagrant: Version constraints:
ps-dev-vagrant: Provider: parallels
ps-dev-vagrant: Architecture: "arm64"
==> dev-vagrant: Box 'bento/ubuntu-22.04-arm64' (v202306.28.0) is running the latest version.
Which you'd tihnk would check for the arch but I'm wondering if it won't use a different arch than the existing image
vagrant box outdated
andvagrant box outdated --force
do not show any updates butvagrant box outdated --global
does. This is forubuntu/jammy64
: https://app.vagrantup.com/ubuntu/boxes/jammy64Debug output
https://gist.github.com/ddribin/0552ec395103d449c0d526b48588ccdb
Expected behavior
vagrant box outdated
should show that version20231012.0.0
is out of date, since the current version is20240126.0.0
.Actual behavior
Reproduction information
Vagrant version
Vagrant 2.4.1 (installed via Homebrew)
Host operating system
macOS Ventura 13.6.3
Guest operating system
Ubuntu Jammy 22.04
Steps to reproduce
vagrant box outdated
Vagrantfile
References
Similar to #11228 but I still hit the issue with
--force
.