chef oss build fails
Nobody has claimed this yet.
- Dominant language
- Erlang
- Stars
- 303
- Forks
- 211
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 5
Description
Chef Server Version
15.10.61+
Platform Details
Debian 12
Configuration
Standalone
Scenario
Since chef-server version 15.10.61, chef-server oss fails to build. This seems to come from here
Since the ARTIFACTORY_REPO_URL env variable is not set by oss users the build fails with
`/opt/omnibus-toolchain/embedded/lib/ruby/3.1.0/open-uri.rb:31:in initialize': no implicit conversion of Hash into String (TypeError)`
Setting
source url: "https://artifacts.opensearch.org/releases/bundle/opensearch/#{version}/opensearch-#{version}-linux-x64.tar.gz",
sha256: "a786fe52b4d25db85cc49f34df6118f19c434b25935f28bd98c0f874ae77ccc3"
instead of
source url: "#{ENV['ARTIFACTORY_REPO_URL']}/opensearch-2/#{name}-#{version}.tuxcare.1-linux-x64.tar.gz",
authorization: "X-JFrog-Art-Api:#{ENV['ARTIFACTORY_TOKEN']}",
sha256: "42028f94ac743959385f58a4527dc01966a98b7551b20bde0be022d5ba543da4"
fixes the problem
Steps to Reproduce
cd omnibus
bundle install --binstubs
bin/omnibus build chef-server
Expected Result
expects chef-server to build correctly
Actual Result
/opt/omnibus-toolchain/embedded/lib/ruby/3.1.0/open-uri.rb:31:in initialize': no implicit conversion of Hash into String (TypeError)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with omnibus/config/software/opensearch.rb, especially the source definition referenced in the issue. Run bundle install --binstubs followed by bin/omnibus build chef-server to reproduce the TypeError on Debian 12. Done means the Chef Server OSS build completes without requiring ARTIFACTORY_REPO_URL or ARTIFACTORY_TOKEN.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100