Comments (2)
I cannot reproduce, so my guess is zef
is choosing a config that may not be what someone would expect. Specifically for this case its looking for a config file that is json, slurping it into a hash, and using the %hash<StoreDir>
value for a default cache parameter
Zef::Config.find-config()
The order used is:
$cwd/config.json
$home/.zef/config.json
$cwd/.zef/config.json
%?RESOURCES<config.json>
As I cannot reproduce, could you run zef --help
? The section under FLAGS, titled CONFIGURATION, will list the path of the file it will use for the config. Mine shows:
CONFIGURATION /home/nickl/.rakudobrew/moar-2016.04/install/share/perl6/site/resources/1F29702A476391AE0318E060ADE9CA2BB2B0F993.json
If this file does exist, could you verify it contains a "StoreDir"
key and value?
If it does not exist or it shows nothing (I doubt this, as there should be a slurp related error occuring first), my guess would be %?RESOURCES<config.json>
is possibly returning a bad path. I'd have to see what you are getting by adding the following to Zef::Config.find-config()
:
say "config.json".IO.perl;
say ($*HOME // $*CWD).child('.zef').child('config.json').perl;
say %?RESOURCES<config.json>.perl
Clearly better errors and debugging output are needed here 😦
from zef.
Aha! I actually had an unrelated file named config.json
(config for my own module) in the directory I was running zef in. False alarm. Sorry.
from zef.
Related Issues (20)
- Failed to create directory '/usr/share/perl6/site/short' with mode '0o777': Failed to mkdir HOT 2
- Installing `DateTime::Timezones:ver<0.4.1>:auth<zef:guifa>` fails but keeps installation HOT 2
- How to fix destroot for zef? HOT 12
- `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
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.