Skip to content

Commit 457009d

Browse files
committed
Remove external appliance dependencies and just include in the Gemfile
1 parent c096bf3 commit 457009d

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
run: bin/before_install
3333
- name: Set up Ruby
3434
uses: ruby/setup-ruby@v1
35+
env:
36+
APPLIANCE: "true"
3537
with:
3638
ruby-version: ${{ matrix.ruby-version }}
3739
bundler-cache: true

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ group :web_socket, :manageiq_default do
256256
gem "websocket-driver", "~>0.6.3", :require => false
257257
end
258258

259+
if ENV["APPLIANCE"]
260+
group :appliance, :optional => true do
261+
gem "manageiq-appliance_console", "~>6.0", :require => false
262+
end
263+
end
264+
259265
### Start of gems excluded from the appliances.
260266
# The gems listed below do not need to be packaged until we find it necessary or useful.
261267
# Only add gems here that we do not need on an appliance.

lib/tasks/release.rake

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ task :release do
2424
lock_release = root.join("Gemfile.lock.release")
2525
if lock_release.exist?
2626
gemfile_lock = lock_release.to_s.chomp(".release")
27-
appliance_dependency = root.join("bundler.d/manageiq-appliance-dependencies.rb")
2827

2928
FileUtils.ln_s(lock_release, gemfile_lock, :force => true)
30-
FileUtils.ln_s(root.join("../manageiq-appliance/manageiq-appliance-dependencies.rb"),
31-
appliance_dependency, :force => true)
3229

3330
exit $?.exitstatus unless Bundler.unbundled_system({"BUNDLE_IGNORE_CONFIG" => "true", "APPLIANCE" => "true"}, "bundle lock --update --conservative --patch")
3431

35-
FileUtils.rm([appliance_dependency, gemfile_lock])
32+
FileUtils.rm(gemfile_lock)
3633

3734
lock_content = lock_release.read
3835
lock_release.write(lock_content.gsub("branch: #{branch}", "tag: #{version}"))
@@ -206,11 +203,6 @@ namespace :release do
206203
end
207204

208205
begin
209-
require "open-uri"
210-
appliance_deps = URI.parse("https://raw.githubusercontent.com/ManageIQ/manageiq-appliance/#{branch}/manageiq-appliance-dependencies.rb").read
211-
appliance_deps_file = local_bundler_d.join("manageiq_appliance_dependencies.rb")
212-
File.write(appliance_deps_file, appliance_deps)
213-
214206
FileUtils.cp(root.join("Gemfile.lock.release"), root.join("Gemfile.lock"))
215207

216208
if update_gems.any?
@@ -235,8 +227,6 @@ namespace :release do
235227
end
236228

237229
FileUtils.cp(root.join("Gemfile.lock"), root.join("Gemfile.lock.release"))
238-
ensure
239-
FileUtils.rm_f(appliance_deps_file)
240230
end
241231
end
242232
end

0 commit comments

Comments
 (0)