Skip to content

(CAT-2763) Fix Rakefile - #11

Merged
gavindidrichsen merged 2 commits into
mainfrom
fix-rake
Aug 20, 2026
Merged

(CAT-2763) Fix Rakefile#11
gavindidrichsen merged 2 commits into
mainfrom
fix-rake

Conversation

@gavindidrichsen

@gavindidrichsen gavindidrichsen commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The release CI job failed with rake aborted! Don't know how to build task 'build' because Rakefile never required bundler/gem_tasks, so Bundler's build/install/release tasks were never defined.
  • A first fix attempt (previous commit on this branch) replaced the whole Rakefile with a verbatim copy of rspec-puppet's own Rakefile. That broke rake spec with LoadError: cannot load such file -- rspec-puppet/tasks/release_test, since puppetlabs-syntax is a plain Ruby gem (uses plain rspec) and doesn't depend on rspec-puppet at all — that file only exists to test the rspec-puppet gem itself.
  • This commit reverts the Rakefile to its pre-regression content and adds back only the one line actually needed: require 'bundler/gem_tasks'.

Test plan

  • bundle exec rake build — builds puppetlabs-syntax-7.2.1.gem into pkg/
  • bundle exec rake spec — 44 examples, 0 failures
  • bundle exec rake rubocop — 15 files inspected, no offenses
  • CI green on this PR (release and spec jobs)

Signed-off-by: Gavin Didrichsen gavin.didrichsen@gmail.com

Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
@gavindidrichsen
gavindidrichsen requested a review from a team as a code owner August 20, 2026 11:15
The rspec-puppet-copy Rakefile broke `rake spec` (rspec-puppet isn't a
dependency of this gem). Revert to the pre-regression Rakefile and add
the one require actually needed to fix the original CI failure: the
`release` job's `bundle exec rake build` had no `build` task because
`bundler/gem_tasks` was never required.

Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
@gavindidrichsen
gavindidrichsen merged commit 2a2a34a into main Aug 20, 2026
6 checks passed
@gavindidrichsen
gavindidrichsen deleted the fix-rake branch August 20, 2026 11:36
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.

1 participant