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

Avoid YAML::XS 0.61 in Makefile.PL #58

Merged
merged 2 commits into from
Feb 23, 2016

Conversation

kentfredric
Copy link
Contributor

Ideally there should be some Prereq specification that only causes tools to upgrade to 0.62 if, and only if, 0.61 is installed.

But that's typically hard and confusing.

So the equivalent logic using @ether's Dist::Zilla::Plugin::DynamicPrereqs is added here.

In the second commit I add [MetaJSON] because its just generally recommended to ship one if you want to be a good CPAN Citizen. ( esp wr/t build_requires vs test_requires )

Footnotes:

  • I committed generated changes that seemed relevant in the same commit I made them in, wasn't sure if this is protocol or not, but I'm able to fix/wever if required
  • There is still a Build.PL in the source tree, but nothing seems to update that any more, and this patch has no application to Build.PL, and I would fully encourage setting Build.PL on fire =)

Closes #57

@preaction
Copy link
Owner

Generally I don't do the generated changes until the release, though I suppose technically that means they're out-of-date until the release so those devs not wishing to use Dist::Zilla aren't able to run the tests... That problem has somehow never come up... So, meh, six of one, half-dozen of the other.

And yeah, Build.PL should've been dead...

META.json is the only way to have test_requires work as expected.
META.yml stores test_requires values in build_requires, due to META.yml
being META 1.4 and META.json being META 2.0

And build_requires must always be satisfied, even under --notest
@kentfredric
Copy link
Contributor Author

JSON/YAML typo Nuked ... CodeReview for the wind.

preaction added a commit that referenced this pull request Feb 23, 2016
Avoid YAML::XS 0.61 in Makefile.PL
@preaction preaction merged commit e4acb27 into preaction:master Feb 23, 2016
@preaction
Copy link
Owner

Excellent. Thanks!

@kentfredric kentfredric deleted the pull-deps-fixes branch February 23, 2016 14:20
preaction added a commit to preaction/Statocles that referenced this pull request Feb 23, 2016
YAML::XS 0.61 changed the way that references were treated, attempting
to use them as IO::File / IO::Glob objects. Since we were passing
Path::Tiny objects, we got an error about "Not a GLOB reference"

This is now fixed, but if someone has YAML::XS 0.61, they must upgrade
to YAML::XS 0.62

Refs preaction/Beam-Wire#58
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.

YAML::XS 0.61 breaks Beam-Wire-1.014
2 participants