Skip to content

Conversation

@yawboakye
Copy link
Contributor

My Rails application refused to build after I added the riverqueue and riverqueue-activerecord gems. The logs suggested that the errors were due to missing files (see attached screenshot). When I checked the gemspec, the s.files definition included only one file, for all three gems. I modified them to include all files in the various lib directories, changed the gem source to my github fork, and the build succeeded.

Perhaps this failure is unique to my environment (Docker on Railway, bundler 2.5.17), otherwise maybe the definition should be expanded to include all files in the lib directories? This seems to be the default configuration for gems created with bundle gem GEM_NAME.

Screenshot 2024-08-21 at 11 08 59

@yawboakye yawboakye changed the title Include all files in lib paths in gem Include all files in lib paths in various gems Aug 21, 2024
@brandur brandur merged commit f83a946 into riverqueue:master Aug 21, 2024
brandur added a commit that referenced this pull request Aug 21, 2024
Prepare release 0.6.1, containing the Ruby gem fix from #26.
@brandur brandur mentioned this pull request Aug 21, 2024
brandur added a commit that referenced this pull request Aug 21, 2024
Prepare release 0.6.1, containing the Ruby gem fix from #26.
@brandur
Copy link
Contributor

brandur commented Aug 21, 2024

Thanks @yawboakye! Yeah, this seems to be a major oversight. I guess it never happened to me before because I generally have done all my testing pointing manually to the gem directory on my local disk (basically so I'm always using the latest code).

I just cut and pushed version 0.6.1 with your changes, which should resolve the problem.

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