-
Notifications
You must be signed in to change notification settings - Fork 49
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
Enhancement : Supports adding third-party dependencies from git repo with the version
field
#266
Comments
version
fieldversion
field
version
fieldversion
field
@Peefy please assign me this issue |
@AkashKumar7902 Thank you for the contribution. ❤️ |
Hello @vinayakjaas This is an unfinished feature, I assigned it to you, good luck! ❤️ |
@vinayakjaas, can you please pass this issue to me? I saw that you are working on another issue, and I have already worked with Git dependencies in one of my PRs. |
Hey @Manoramsharma I started planning to work on this issue , but if you want to take over and move forward with it, that's okay no problem at all. |
Thanks @vinayakjaas I already have a draft PR in mind that would possibly solve this issue . I would like get this assigned @Peefy |
Hi @Gmin2 I think your changes in |
This issue comes from the preceding #190
The content in the above issue #190 is outdated, so add some more detail to this issue.
Related PR: #254
Context
KPM currently supports adding third-party dependencies from git repositories as dependencies, mainly supporting through tags or commits from the git repository.
You can use command as below to add a kcl package from git repo
Then you will see the below content added in
kcl.mod
or
You can use command as below to add a kcl package from git repo
Then you will see the below content added in
kcl.mod
Referring to the implementation of Cargo in Rust, we hope to support adding dependencies from git repositories with the
version
of kcl package.Feature
Then the following content will appear in your
kcl.mod
file, because theversion
field in thekcl.mod
of the KCL package corresponding to commita29e3db
is0.1.1
.Then the following content will appear in your
kcl.mod
file, because theversion
field in thekcl.mod
of the KCL package corresponding to tag0.0.2
is0.1.1
.kcl.mod
file as follows,But the
version
field in thekcl.mod
of the KCL package corresponding to tag0.0.3
is0.0.1
, i.e., version0.1.1
does not exist in the KCL package with tag0.0.3
. Then, during the process of compiling or updating KCL third-party libraries that trigger the re-download of third-party libraries, an error should be thrown to notify the user that this third-party library with version0.1.1
does not exist in the repo with tag0.0.3
.The text was updated successfully, but these errors were encountered: