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

Pass relative path to .hotpot.lua build/clean functions #133

Open
rktjmp opened this issue Mar 22, 2024 · 0 comments
Open

Pass relative path to .hotpot.lua build/clean functions #133

rktjmp opened this issue Mar 22, 2024 · 0 comments

Comments

@rktjmp
Copy link
Owner

rktjmp commented Mar 22, 2024

The root path "type" given to api.make is inherited by paths given to any "build functions".

This makes some sense when using api.make.build because the root path is explicitly given by the user, and so a relative path is relative to the cwd, and returned paths should also be relative to the cwd, or if given an absolute path, the returned paths should also be absolute.

A .hotpot.lua file is intrinsically "relative" to the dir its inside, but when discovering the .hotpot.lua files container dir, we resolve it to an absolute path, which means the paths passed along end up being absolute instead of relative.

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

1 participant