ugexe / zef

Raku Module Management
Artistic License 2.0
207 stars 44 forks source link

Weird issue: zef can't find itself... sometimes #430

Closed JJ closed 2 years ago

JJ commented 2 years ago

I'm trying to set up a Docker image that contains zef, and it works locally, it does not work in a CI environment such as GitHub.

Context

Created a series of images that use Alpine as base. Since GitHub Actions use UID 1001 for their user, I've created a container that has a raku user with that UID. zef works perfectly... locally. However, this happens in GitHub actions: zef is found, however zef is unable to find its own library module yielding a

===SORRY!===
No candidate found for 'zef'.

Expected Behavior

Work the same as locally

Actual Behavior

No zef command works, although it's in the path and it's actually run.

Steps to Reproduce

Check out failing GitHub actions here

Your Environment

2021.10

ugexe commented 2 years ago

You have changed the default home repository, yet are installing zef to an entirely different home directory. Either install zef to a default repository, or pass the alternative repos to e.g. RAKULIB

JJ commented 2 years ago

RAKULIB sets a file# repo. The original installation place is an inst# repo. Using RAKULIB will not work.

ugexe commented 2 years ago

RAKULIB works fine with other repos types, so I'm confused by the language insisting you know otherwise. Anyways there is an example in the zef readme showing it works fine: https://github.com/ugexe/zef#custom-installation-locations

JJ commented 2 years ago

As usual, you are right; only the documentation fails to mention that. I'll create an issue to fix that issue. Thanks.