-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat(lang): support include other git repo for envd functions/variables #808
Conversation
Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
@@ -0,0 +1,6 @@ | |||
envdlib = include("https://github.com/kemingy/envdlib") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we embed the envdlib into the envd binary? git clone may take a long time, especially in China.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be cached in ~/.cache/envd/envdlib/<repo>
.
I tried to reduce the repo size with depth=1
but it failed to git pull
, see go-git/go-git#305.
BTW, envdlib
should be very small since it only contains README and envd files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If users want to use tensorboard, do they need to add envdlib = include("https://github.com/kemingy/envdlib")
into the build.envd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not necessary if the envdlib is maintained by us. The feature can be used for third-party libs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense. So shall we maintain the envdlib
in envd
or use git submodule?
I can create another PR to evaluate the envdlib
and insert into envd
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git submodule LGTM.
/cc @VoVAllen
And maybe we can maintain an example about using third-party plugins.
Should we merge the PR first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can merge this one if it LGTY
@@ -19,4 +19,7 @@ const ( | |||
ruleShell = "shell" | |||
ruleRun = "run" | |||
ruleGitConfig = "git_config" | |||
ruleInclude = "include" | |||
|
|||
GitPrefix = "git@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should define the public const in a separate package, but LGTM now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/lgtm testing muniu-bot |
/retest |
1 similar comment
/retest |
/test all |
/lgtm |
@zwpaper: No presubmit jobs available for tensorchord/envd@main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aseaday, gaocegege, kemingy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Please test the bot in #812 |
Signed-off-by: Keming kemingyang@tensorchord.ai
FAQ
load
is starlark keyword,import
has been reserved by starlark.