Add golang to tool-versions for rspec tests
What does this MR do and why?
It seems that rspec tests need golang installed, this MR adds golang to .tool-versions
before:
% bin/rspec spec/features/calendar_spec.rb
/Users/jamesrushford/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/io-event-1.6.5/lib/io/event/support.rb:27: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
warning: parser/current is loading parser/ruby32, which recognizes 3.2.4-compliant syntax, but you are running 3.2.3.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
### Building gitlab-resize-image
go build -ldflags "-X main.Version=11-10-0cfa69752d8-74ffd66ae-ee-279004-g4deb1d47b8d0 -X main.BuildTime=20240719.154818" -tags "tracer_static tracer_static_jaeger continuous_profiler_stackdriver" -o /Users/jamesrushford/Documents/gitlab-development-kit/gitlab/workhorse/gitlab-resize-image gitlab.com/gitlab-org/gitlab/workhorse/cmd/gitlab-resize-image
No go executable found for golang 1.22.5
make: *** [gitlab-resize-image] Error 2
An error occurred in a `before(:suite)` hook.
Failure/Error: raise 'workhorse make failed'
RuntimeError:
workhorse make failed
# ./lib/gitlab/setup_helper.rb:58:in `compile_into'
# ./spec/support/helpers/test_env.rb:231:in `setup_workhorse'
# ./spec/support/helpers/test_env.rb:159:in `public_send'
# ./spec/support/helpers/test_env.rb:159:in `block in init'
# ./spec/support/helpers/test_env.rb:158:in `init'
# ./spec/spec_helper.rb:235:in `block (2 levels) in <top (required)>'
Finished in 2.98 seconds (files took 14.46 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
after:
% bin/rspec spec/features/calendar_spec.rb
/Users/jamesrushford/.asdf/installs/ruby/3.2.3/lib/ruby/gems/3.2.0/gems/io-event-1.6.5/lib/io/event/support.rb:27: warning: IO::Buffer is experimental and both the Ruby and C interface may change in the future!
warning: parser/current is loading parser/ruby32, which recognizes 3.2.4-compliant syntax, but you are running 3.2.3.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
==> GitLab Workhorse set up in 51.866212 seconds...
Test environment set up in 53.931836 seconds
Starting the Capybara driver server...
Capybara starting Puma...
* Version 6.4.0, codename: The Eagle of Durango
* Min threads: 0, max threads: 4
* Listening on unix:///var/folders/03/cb7xhp2d7rl2mxq4f1r6wh140000gn/T/20240719-28919-4uztey
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.