Skip to content

Commit

Permalink
Check go version in the operator directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Aug 15, 2024
1 parent 54ea59c commit 0aec29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/manageiq-operator/go_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'awesome_spawn'
dockerfile_version = File.read(ROOT.join("manageiq-operator", "Dockerfile")).match(/^FROM.+golang:(\d+\.\d+).+/)[1]
mod_version = File.read(ROOT.join("manageiq-operator", "go.mod")).match(/^go\s(\d+\.\d+)/)[1]
running_version = AwesomeSpawn.run!("go version").output.match(/.*\sgo(\d+\.\d+).*/)[1]
running_version = AwesomeSpawn.run!("go version", :chdir => ROOT.join("manageiq-operator")).output.match(/.*\sgo(\d+\.\d+).*/)[1]

expect(dockerfile_version).to eq(mod_version)
expect(running_version).to eq(mod_version)
Expand Down

0 comments on commit 0aec29e

Please sign in to comment.