Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Last active December 12, 2015 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyagawa/4688910 to your computer and use it in GitHub Desktop.
Save miyagawa/4688910 to your computer and use it in GitHub Desktop.
== in cpanfile actually can freeze the dep. ZOMG. See https://gist.github.com/4688946 for plain local::lib without carton
➜ perl -MTry::Tiny\ 1
Try::Tiny version 1 required--this is only version 0.12.
BEGIN failed--compilation aborted.
➜ cat cpanfile
requires 'Try::Tiny', '== 0.11';
➜ carton -v
carton v0.9_7
➜ cpanm -V
cpanm (App::cpanminus) version 1.59_01
➜ carton install
Installing modules using cpanfile
Successfully installed Try-Tiny-0.11
1 distribution installed
Complete! Modules were installed into local
➜ carton exec -- perl -e 'use Try::Tiny 1'
Try::Tiny version 1 required--this is only version 0.11 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment