Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: command checks for folder instead of running command #55

Open
tylerchilds opened this issue May 13, 2024 · 3 comments
Open

help: command checks for folder instead of running command #55

tylerchilds opened this issue May 13, 2024 · 3 comments

Comments

@tylerchilds
Copy link

tylerchilds commented May 13, 2024

Hello! First off- I love this project and I've been testing it across a vast array of hardware-- i'm mostly frontend usually and not super familiar with lower level backend systems and pup has been amazing at letting me keep my prototypes organized.

I'm currently running into an issue on a raspberry pi 4 that i've not experienced on any other hardware-- i know it works on rasperry pis, as I have other passing test units.

I'm using pup to start a mix of node and deno services, for example, my edge client i start with

deno run -A client.js

and i wrap that in my deno.json as

deno task start-client

which i configure for pup as

{
      "id": "plan98-start-client",
      "cmd": "deno task start-client",
      "autostart": true
}

and i'll start all currently active features with pup

the problem I'm facing seems to be in between pup and deno.

The error in the output is

[ERROR] [plan98-start-client]:stderr] error: Module not found "file:///home/tychi/.plan98/task"

I can run deno task start-client on device and get my web server on port 8000, but when pup seems run the deno task start-client command, it seems to look in the .plan98 folder (where i have the plan98 repository cloned) for a non-existent task folder instead of running the full start-client command from deno task.

My hunch is there's some command translation issue under the hood, but I'm not able to reproduce this bug on any other device.

@tylerchilds
Copy link
Author

update: i am able to reproduce, i removed my deno.lock file on the same repository from above on an m2 macbook running asahi linux.

reproduction:

1: git clone [email protected]:tylerchilds/plan98.git
2: deno task start
3: you'll see that all the microservices hit the Module not found task error. the one from above was for a simple example.

@tylerchilds
Copy link
Author

I create a more condensed reproduction repository. That has

mod.js: javascript file that logs 'hello world' to the console when executed
deno.json: file with a lookup table for task commands, specifically start to run mod.js with the deno javascript runtime
README.md: for instructions on how to use pup to reproduce the slice of the issue i'm facing in my broader architecture.

https://github.com/tylerchilds/pup-deno-task-reproduction

@Hexagon
Copy link
Owner

Hexagon commented May 13, 2024

Thanks for a great bug report! We will look into this as soon as possible 👍 Please let us know if you find any more clues to what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants