I used Dist :: Zilla for the project at work, and I declared all my dependencies in the section [Prereqs / Requires]. So far it has been good.
[Prereqs / Requires]
Now I have discovered that the latest version of one of my dependencies violates backward compatibility, so I want to limit the range of versions that I am dependent on. Something like cpanmsupports:
cpanm
# from perldoc cpanm cpanm Plack~">= 1.0000, < 2.0000" # latest of 1.xxxx cpanm Plack@0.9990 # specific version. same as Plack~"== 0.9990"
Or Module::Build:
Module::Build
'Other::Module' => '>= 1.2, != 1.5, < 2.0',
In general, how to declare this type of dependency using Dist :: Zilla?
Dist::Zilla::Prereqs CPAN:: Meta:: Spec prereqs. Version Ranges.
(prereq, optional_features) (-) - , . , .- , . 2,4. , 2.4 . , , , 0., < (), <= ( ), > (), >= ( ), == (), != ( ). , < 2,0 , 2.0 .AND-ed . >= 1,2,!= 1,5, 2,0 , 1,2, 2,0, 1,5.
(prereq, optional_features) (-) - , . , .
- , . 2,4. , 2.4 . , , , 0.
, < (), <= ( ), > (), >= ( ), == (), != ( ). , < 2,0 , 2.0 .
AND-ed . >= 1,2,!= 1,5, 2,0 , 1,2, 2,0, 1,5.
, prereqs :
[Prereqs] Plack = >= 1.0000, < 2.0000 Plack = == 0.9990 Other::Module = >= 1.2, != 1.5, < 2.0
=, () ().
=
:
>= 1.0000, 2,0000
1.0000 2.0000
== 0.9990
0.9990
= 1,2,!= 1,5, 2.0
12, 1.5 2.0
, , cpanfile Module:: Build.
, ( , ).
[Prereqs] Plack = >= 1.000, < 2.000 Other::Module = == 1.0 Other::Other::Module = >= 1.2, != 1.5, < 2.0
ETA: Simbaque ; .
Source: https://habr.com/ru/post/1658424/More articles:Make JS functions more efficient and dynamic - javascriptCeries vs AWS Lambda message queue - python-2.7Understanding CompletableFuture :: runAsync - javaSpring Transaction not rollback - javaSpring transaction: rollback by exception or Throwable - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1658425/create-shortcut-to-website-in-chrome-on-desktop-automatically&usg=ALkJrhjvRDh5zfEoCViaRCex0bfht506YgHow can I dial a hint attribute in Python 3.5? - pythonHow to create a batch file to create a shortcut on a web page - batch-fileΠΠ°ΠΊ Π·Π°ΠΌΠ΅Π½ΠΈΡΡ Π²ΡΠ΅ ΠΊΠ»Π°Π²ΠΈΡΠΈ "Ctrl" ΠΊΠ»Π°Π²ΠΈΡΠ°ΠΌΠΈ "Command" Π² ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΠ΅ Android Studio Eclipse (windows)? - eclipsePassing a three-dimensional array by reference in C ++ - c ++All Articles