comment-on-pr icon indicating copy to clipboard operation
comment-on-pr copied to clipboard

Builds failing with v1.3.1

Open impressiver opened this issue 3 years ago • 12 comments

Upgrading to unsplash/[email protected] causes our builds to fail w/ the following error:

/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Downgrading to unsplash/[email protected] fixed our builds for now.

impressiver avatar Jan 05 '22 23:01 impressiver

I don't have time to address this right now but reverted the breaking PR on master in the meantime.

aaronklaassen avatar Jan 06 '22 16:01 aaronklaassen

@aaronklaassen 1.3.0 breaks as well now with the following error image

nubcake94 avatar Jan 06 '22 16:01 nubcake94

FWIW, 1.2.0 builds but does not run:

/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/request/retry (LoadError)
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:28:in `block in <module:Default>'
	from /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/rack_builder.rb:76:in `build'
	from /usr/local/bundle/gems/faraday-1.9.0/lib/faraday/rack_builder.rb:65:in `initialize'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:27:in `new'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:27:in `<module:Default>'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:9:in `<module:Octokit>'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit/default.rb:6:in `<top (required)>'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/local/bundle/gems/octokit-4.21.0/lib/octokit.rb:4:in `<top (required)>'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
	from /entrypoint.sh:4:in `<main>'
/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- octokit (LoadError)
	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /entrypoint.sh:4:in `<main>'

drewbrew avatar Jan 06 '22 17:01 drewbrew

looks like 1.3.0 stopped working too due to the same error @drewbrew posted above

kirach avatar Jan 06 '22 18:01 kirach

looks like 1.3.0 stopped working too due to the same error @drewbrew posted above

Broke for us too for a short time this morning, but builds are building again pinned to v1.3.0

impressiver avatar Jan 06 '22 23:01 impressiver

v1.3.0 stopped working since yesterday and v1.3.1 dosnt work also. Please fix this.

jbuettnerbild avatar Jan 07 '22 08:01 jbuettnerbild

builds are building again pinned to v1.3.0

Same here, luckily

drewbrew avatar Jan 07 '22 18:01 drewbrew

@aaronklaassen, would it be possible to create a new tag (v1.3.2) from master? With automatic dependency updates (using Renovate bot / dependabot) it's easy to end up on v1.3.1.

dgrenner avatar Jan 28 '22 07:01 dgrenner

A new tag would indeed be really useful.

wblondel avatar Feb 25 '22 18:02 wblondel

For anyone trying to work around this broken action, I decided to use the gh cli instead:

-   name: Add comment on PR
    run: |
        cat << EOF | gh pr comment ${{ github.event.pull_request.number }} --body-file -
        Hello from
        GitHub Actions
        EOF
    env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Unfortunately, there is no duplication check in the gh cli.

ruudk avatar May 06 '22 08:05 ruudk

any updates?

sjortiz avatar Dec 15 '22 16:12 sjortiz

This also broke our deploys when we upgraded from 1.3.0 to 1.3.1 with the error from the OP:

To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/entrypoint.sh:5:in `require_relative': cannot load such file -- /lib/github (LoadError)
	from /entrypoint.sh:5:in `<main>'

Reverting to 1.3.0 fixed the issue.

I noticed looking through the commits for the change from 1.3.0 to 1.3.1 that there's been a major refactor, would that be worthy of a major/minor version bump rather than a patch version change.

Lockyy avatar Feb 06 '23 13:02 Lockyy