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

Support for remote file #2171

Closed
romanzdk opened this issue Jun 19, 2024 · 3 comments · Fixed by #2175
Closed

Support for remote file #2171

romanzdk opened this issue Jun 19, 2024 · 3 comments · Fixed by #2175

Comments

@romanzdk
Copy link

I would like to have "company" wide Justfile with ability to override certain tasks on per-project level. I imagine I would put the "master" Justfile into some repository and then in local repository just reference this master one using URL similarly as Taskfile does - https://taskfile.dev/experiments/remote-taskfiles/

@laniakea64
Copy link
Contributor

#1799

I imagine I would put the "master" Justfile into some repository and then in local repository just reference this master one

In this case, you could set up your local repository to pull in the repository containing your company-wide justfile as a git submodule. Then your local justfile can reference the company-wide justfile by relative file path in import or mod.

@romanzdk
Copy link
Author

Yeah, aware of that, thanks but I do not find this setup user friendly as we would need to include the submodule in every repository and I do not fancy that. I believe referencing file via url should be fairly straightforward.

@casey casey linked a pull request Jun 20, 2024 that will close this issue
@casey
Copy link
Owner

casey commented Jun 20, 2024

There's currently a pretty decent workaround for this, see the docs I added in #2175. I'm currently not sure I want to support remote justfiles directly, since the workaround is pretty simple, and I'm not entirely sure how caching would work (download once and reuse? always download?).

@casey casey reopened this Jun 20, 2024
@casey casey closed this as completed Jun 20, 2024
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

Successfully merging a pull request may close this issue.

3 participants