Skip to content

Conversation

amatsuda
Copy link
Contributor

On PR #1036, I saw a CI failure that is unrelated to its changeset.
https://norsk.cf-app.com/builds/446820782

The error NameError: uninitialized constant LicenseFinder::OpenStruct implies that we should explicitly bundle "ostruct" gem, but in this case I'd suggest to simply use Struct instead of OpenStruct.

@pivotal-cla
Copy link

@amatsuda Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@cf-gitbot
Copy link
Collaborator

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@amatsuda
Copy link
Contributor Author

@pivotal-cla This is an Obvious Fix

@pivotal-cla
Copy link

@amatsuda This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.

this fixes a NameError on recent versions of Ruby that requires to
explicitly bundle ostruct gem
e.g. https://norsk.cf-app.com/builds/446820782
@amatsuda
Copy link
Contributor Author

Ruby 2.6 CI fails https://norsk.cf-app.com/builds/446825268 due to ba4910e.
Perhaps you'd better either revert this or drop Ruby < 2.7 support.

@xtreme-shane-lattanzio
Copy link
Contributor

@amatsuda Thanks for the PR. I saw this after but added the fix by explicitly requiring openstruct

@amatsuda
Copy link
Contributor Author

amatsuda commented May 7, 2024

@xtreme-shane-lattanzio No problem, I'm totally fine with that. But maybe I should have wrote in the PR description that use of ostruct is now mildly warned due to performance reason ruby/ostruct#56
and that's why I suggested to switch to Struct rather than simply adding a require statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants