Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing main build #56

Merged
merged 3 commits into from
Mar 28, 2023
Merged

Fix failing main build #56

merged 3 commits into from
Mar 28, 2023

Conversation

kevindew
Copy link
Member

The main merge for this repo is failing with an error:

(eval):19:in `expand_path': no implicit conversion of nil into String (TypeError)
from (eval):19:in `block in <main>'
from /opt/hostedtoolcache/Ruby/3.0.5/x64/lib/ruby/site_ruby/3.0.0/rubygems/specification.rb:2055:in `initialize'
from (eval):5:in `new'
from (eval):5:in `<main>'
from -e:1:in `eval'
from -e:1:in `<main>'

This was occurring because of the contextual command of changing
directory that fails when the gemspec is eval'd as part of pushing a gem
1. While the ultimate cause of this is the fragility of an eval
command (🤢) the simplest fix is the simplify the command.

This also has a couple of small amends to the gemspec.

The main merge for this repo is failing with an error:

```
(eval):19:in `expand_path': no implicit conversion of nil into String (TypeError)
from (eval):19:in `block in <main>'
from /opt/hostedtoolcache/Ruby/3.0.5/x64/lib/ruby/site_ruby/3.0.0/rubygems/specification.rb:2055:in `initialize'
from (eval):5:in `new'
from (eval):5:in `<main>'
from -e:1:in `eval'
from -e:1:in `<main>'
```

This was occurring because of the contextual command of changing
directory that fails when the gemspec is eval'd as part of pushing a gem
[1]. While the ultimate cause of this is the fragility of an eval
command (🤢) the simplest fix is the simplify the command.

[1]: https://github.com/alphagov/govuk-infrastructure/blob/bfc9e8b9549161b524b31b749050e5fc48f8d3f4/.github/workflows/publish-rubygem.yml#L61
These files are for developing the gem and needn't be distributed.
Not too sure why rubocop isn't policing these.
@kevindew kevindew merged commit b083cd2 into main Mar 28, 2023
@kevindew kevindew deleted the fix-failing-main-build branch March 28, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants