Adapt Guardfile to support nanoc-cli >= 4.14.7 by handling removed `r…#38
Conversation
|
I've added CI on master with the last commit. Instead of patching the code like this, couldn't we just bump (While I would prefer backwards-compatibility with Ruby 3.2, if it's too hard to guarantee, it's not the end of the world IMO) |
175b0ba to
1d7a9e4
Compare
|
The CI does not seem to pass (it also doesn't pass for these versions on master). What Ruby version are you using? @jitsedesmet, is this the same problem you were running into? |
|
Yes, the |
|
My changes were: adding |
|
@jitsedesmet Your change sounds less invasive. Want to make a PR for it? |
|
I lied. This is something else, sorry (just tested locally) |
|
Aha, but DO we really need this fix? They updated their package (March 7) and introduced a breaking change on a patch. Maybe we should just pin the version? Or flag the mistake on their part? |
|
After looking for 15 more minutes. Idk when this broke. But I think the approach here is valid? |
@jitsedesmet Could you open a PR with these changes? I assume this will fix the CI. I suggest to put the PR on hold until that one is merged, as there seem to be different problems. |
|
@Michiel-VandeVelde I think you can merge with main since my issue (distinct from yours) has been merged |
1d7a9e4 to
ae809df
Compare
|
Excellent, all seems to work now, thanks @Michiel-VandeVelde! |
bundle exec guard crashes on startup because guard-nanoc 2.1.x calls FileActionPrinter.new(reps: []), but nanoc-cli 4.14.7 removed that parameter from initialize.
This patches the Guardfile template to make FileActionPrinter#initialize accept and ignore the stale keyword argument, making bundle exec guard work again without requiring a downgrade of either gem.