GithubHelp home page GithubHelp logo

Comments (2)

ugexe avatar ugexe commented on June 3, 2024

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:

  1. $cwd/config.json
  2. $home/.zef/config.json
  3. $cwd/.zef/config.json
  4. %?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.

zoffixznet avatar zoffixznet commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.