Giter Site home page Giter Site logo

tomtit's People

Contributors

adivinaelnombre avatar melezhik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mimosinnet

tomtit's Issues

Running tom locally dies when trying to read from missing directory

Running tom locally dies with the following error:

$ tom test
Failed to copy '/home/user/repo/api/v1/index' to '/home/user/sparrow6/index': Failed to copy file: no such file or directory
  in method get-resource at /home/user/.rakubrew/versions/moar-2022.06/install/share/perl6/site/sources/FBA5C2EEFF3791CAA61A1A30DE59E

This is apparently because the S6_REPO environment variable is not set, so it tries to read plugins from a local ~/repo, which doesn't exist.

This directory (~/repo) does not sound like a very good default value, since there's nothing that connects it to Tomtit (or Sparrow, or anything related). But regardless of what that directory is, it might be a good idea to ignore it if it doesn't exist, rather than die.

Missing resource makes installation fail

The META6.json makes a reference to profiles/tomtit/tomtit-pl6-to-raku.raku, but this file does not exist. This makes installations fail:

$ zef install Tomtit
===> Searching for: Tomtit
===> Testing: Tomtit:ver<0.1.18>:auth<zef:melezhik>
===> Testing [OK] for Tomtit:ver<0.1.18>:auth<zef:melezhik>
===> Installing: Tomtit:ver<0.1.18>:auth<zef:melezhik>
===> Install [FAIL] for Tomtit:ver<0.1.18>:auth<zef:melezhik>: Failed to open file /home/user/.zef/tmp/94d1aeac7836c2cc8957523fa1e93eba8d819cca.tar.gz/dist/resources/profiles/tomtit/tomtit-pl6-to-raku.raku: No such file or directory
Failed to open file /home/user/.zef/tmp/94d1aeac7836c2cc8957523fa1e93eba8d819cca.tar.gz/dist/resources/profiles/tomtit/tomtit-pl6-to-raku.raku: No such file or directory

Unable to run scenario hello@world from profile hello

After installing the hello@world scenario from profile hello with:

tom --profile hello@world

I get this error when running the world scenario:

tom world
Failed to copy '/home/mimosinnet/repo/api/v1/index' to '/home/mimosinnet/sparrow6/index': Failed to copy file: no such file or directory
  in method get-resource at /home/mimosinnet/.raku/sources/FDB0466B6B114EE217DEECB2A5BF3A0A8FF06135 (Sparrow6::Task::Repository::Helpers::Common) line 14
  in method index-update at /home/mimosinnet/.raku/sources/32BFBAD77EA9E98119928C61C4765307AAF30C7D (Sparrow6::Task::Repository::Helpers::Index) line 7
  in sub scenario-run at /home/mimosinnet/.raku/sources/4082C4D2541542A3AFCBD1F5D7452B78D35592C3 (Tomtit) line 159
  in sub MAIN at /home/mimosinnet/.raku/resources/1A0DE0F3157C7DC720ADD7D4D258AA17EEC76304 line 133
  in block <unit> at /home/mimosinnet/.raku/resources/1A0DE0F3157C7DC720ADD7D4D258AA17EEC76304 line 3
  in sub MAIN at /home/mimosinnet/.raku/bin/tom line 3
  in block <unit> at /home/mimosinnet/.raku/bin/tom line 1

I believe this is the result of not having repo information defined in Sparrow:

s6 --repo-info
08:31:56 :: [repository] - repo information
repo: file:///home/mimosinnet/repo
sparrow root: /home/mimosinnet/sparrow6
prefix: (Str)

I wonder if it will be possible to define a default repo url in Sparrow/Tomtit, so it is possible to have Tomtit working without prior configuration.

P.S.: Thanks for this outstanding tool and for your great talk in the Raku conference.

Task dependencies support?

Based on - https://gitlab.com/jjatria/publicsuffix/-/merge_requests/1#note_1064614348

Thanks for all the work you've put into this!
I do worry a little about the duplication, but maybe that's not such a bad problem. Are there no plans to give tom the ability to | have tasks depend on each other, like make or ake does? It would make writing things like this easier.
I'll have to think about this when I get some time. It'd be nice to solve this using a Raku tool.

by @jjatria

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.