Comments (4)
The zef replacement is zef --depsonly install .
One may ask, "Why not use a separate command, installdeps?" My current thought is that since install
and installdeps
would share all the same code except for a single grep
(to remove the non-dependencies from the candidate list, which they still must be fetched from to get the update-to-date dependency list from its META6) that its better as an option/flag to a single command install
. It is true that it would be trivial to add a thin multi MAIN('installdeps'
function to delegate to multi MAIN('install'
, but a new command would also require documentation (including all the parameters, which would be redundant between installdeps
and install
, like the --["-" [build|test]]?depends
flags).
Note that --depsonly
appears to have stopped working as of 10 days ago (last known good revision 2ec83dd). However it has been fixed as of today.
Also note that I do not really like the name depsonly
as it implies a type of exclusion or false boolean in the name itself. I'd prefer using an actual negative flag like the depends
options use (--depends --/depends
--test-depends --/test-depends
--build-depends --/build-depends
, where the default values are positive (True)). Something like --/requested
(where "requested" means not a dependency) where the default is --requested
, but I can't think of a word/term that would make sense to a newer user (--requested might make sense to someone intimately familiar with zef
, but probably not a newer user). In other words instead of zef --depsonly install .
i'd prefer zef --/requested install .
Notice the negative is implied by the command, --/
, instead of by the text like only
or other common uses like skip
and no
(hence zef
uses --/test
instead of --skip-test
or --notest
).
If anyone can think of a flag to replace --depsonly
that fits this scheme i'd love to hear it.
from zef.
Thanks for fixing it. It works perfectly now. I wish we had more example documentation (i.e. cookbook style) 👍
I vote for zef --installdeps .
since it is compatible with cpanm --installdeps .
. Thus, it will make the future transition to Perl 6 easier for most Perl programmers. Also we can have another alias for purists zef --install-deps .
.
from zef.
Another related bug when there is not any dependency (i.e. depends: []
), it croaks with the following error:
rakudobrew build zef
Cloning into 'zef'...
Your branch is up-to-date with 'origin/master'.
===> Testing: zef:auth('github:ugexe')
t/00-load.t ........... ok
t/identity.t .......... ok
t/utils-filesystem.t .. ok
All tests successful.
Files=3, Tests=14, 109 wallclock secs ( 0.22 usr + 0.05 sys = 0.27 CPU)
Result: PASS
===> Testing [OK] for zef:auth('github:ugexe')
===> Installing: zef:auth('github:ugexe')
===> Install [OK] for zef:auth('github:ugexe')
1 bin/ script [zef] installed to:
C:\Users\appveyor\rakudobrew\moar-2016.02\install\share\perl6\site\bin
Updating shims
Done, built zef for moar-2016.02
cd %APPVEYOR_BUILD_FOLDER%
zef --depsonly install .
All candidates are currently installed. No reason to proceed (use --force to continue anyway)
in sub MAIN at C:\Users\appveyor\rakudobrew\moar-2016.02\install\share\perl6\site\sources\A9948E7371E0EB9AFDF1EEEB07B52A1B75537C31 line 105
in block <unit> at C:\Users\appveyor\rakudobrew\moar-2016.02\install\share\perl6\site/resources/EA5AB4A8FDBB356B44B048C7BEA933AE333F7E49 line 1
Command exited with code 1
from zef.
Looks good. Thanks 👍
https://ci.appveyor.com/project/azawawi/perl6-file-which/build/1.0.15
from zef.
Related Issues (20)
- `zef depends` suggests using `--exclude` but then doesn't recognize the flag
- fetch 'Usage' message incorrectly suggests arguments are optional HOT 2
- Feature request: `zef config` subcommands for debugging HOT 1
- Confusing message for command 'upgrade' HOT 4
- Feature request: Have option "--serial" be the default for commands "install" and "upgrade" HOT 2
- zef install treated "v6" as a dependency HOT 1
- No such method 'remove-artifacts' for invocant of type HOT 4
- Can't `zef install` YAMLish on Windows 10 HOT 6
- Error: Type check failed in binding to parameter '$repo-id'; HOT 1
- Use of uninitialized value @short-names-to-index HOT 4
- zef installs some module resources to /tmp/.zef which are missing on reboot HOT 5
- Add `--precomp` flag to zef HOT 1
- Use of uninitialized value @short-names-to-index in Zef::Repository::Ecosystems line 250 HOT 2
- zef install fails on a fresh (?) M1 macos brew install of rakudo star HOT 7
- zef can't find any distribution that has ":ver<*>" in its name HOT 2
- Error in dependency resolution HOT 7
- Digest vs Digest::MD5 (advice please) HOT 5
- zef may fail to install IO::String HOT 1
- Zef local test (zef test . --debug) doesn't check for valid pod HOT 5
- Shared library referenced in /tmp/.zef? Potential security issue. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zef.