Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jarek Prokop
aff1f9a2ef Fix default URL used for pulling boxes.
The default URL to pull vagrant boxes changed.
Fixing it allows the boxes to be pulled again.

Resolves: rhbz#2337302
2025-01-16 14:31:17 +01:00
2 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,22 @@
From 27440fdd8cebf57882e3672376d409b139cc1e86 Mon Sep 17 00:00:00 2001
From: Jarek Prokop <jprokop@redhat.com>
Date: Thu, 16 Jan 2025 13:36:05 +0100
Subject: [PATCH] Fix the default vagrant URL for pulling boxes.
---
lib/vagrant/shared_helpers.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vagrant/shared_helpers.rb b/lib/vagrant/shared_helpers.rb
index b07c89a48..3c57cad6d 100644
--- a/lib/vagrant/shared_helpers.rb
+++ b/lib/vagrant/shared_helpers.rb
@@ -10,7 +10,7 @@ module Vagrant
# of Vagrant that may require remote access.
#
# @return [String]
- DEFAULT_SERVER_URL = "https://vagrantcloud.com".freeze
+ DEFAULT_SERVER_URL = "https://vagrantcloud.com/api/v2/vagrant".freeze
# Max number of seconds to wait for joining an active thread.
#

View file

@ -7,7 +7,7 @@
Name: vagrant
Version: 2.3.4
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Build and distribute virtualized development environments
License: MIT
URL: http://vagrantup.com
@ -40,6 +40,10 @@ Patch4: vagrant-2.3.4-Only-check-for-arguments-matching-test-string.patch
# The file is removed as it requires protobuf components not yet
# packaged in Fedora.
Patch5: vagrant-2.3.4-Disable-loading-of-direct_conversions-file.patch
# Default URL for pulling boxes seems to have changed.
# This fix allows vagrant to pull boxes again.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=2337302
Patch6: vagrant-2.3.4-Fix-the-default-vagrant-URL-for-pulling-boxes.patch
# The load directive is supported since RPM 4.12, i.e. F21+. The build process
# fails on older Fedoras.
@ -209,6 +213,8 @@ rm -rf plugins/commands/serve/util/direct_conversions.rb
%patch3 -p1
%patch6 -p1
%build
gem build %{name}.gemspec
@ -488,6 +494,10 @@ end
%{vagrant_plugin_instdir}/vagrant-spec.config.example.rb
%changelog
* Thu Jan 16 2025 Jarek Prokop <jprokop@redhat.com> - 2.3.4-6
- Fix default URL used for pulling boxes.
Resolves: rhbz#2337302
* Wed Feb 07 2024 Vít Ondruch <vondruch@redhat.com> - 2.3.4-5
- Drop superfluous rest-client dependency.