-
Notifications
You must be signed in to change notification settings - Fork 43
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: The feature renaming dependency is incomplete #397
Comments
Hi @zong-zhe I would like to collaborate on this one. |
Hi @Manoramsharma 😃 Are you going to finish this part of the work? |
@zong-zhe It will be better if you can add some sub-tasks that will ultimately be achieving this and I can contribute to those small sub-tasks if you think this issue to be a complex one. |
Hi @Manoramsharma 😃 The first step is to add this
The first PR is that kcl.mod supports reading and writing to the above formats with Change the contents of this file and write the corresponding tests for your work: https://github.com/kcl-lang/kpm/blob/main/pkg/downloader/toml.go |
Hey @zong-zhe |
Hi @Gmin2 😃
kcl cli - https://github.com/kcl-lang/cli |
Problem
The current kpm renaming dependency is incomplete, the current state of this function is only to replace the dependent name in
kcl.mod
.This will result in the following situation:
The command above will add dependency into kcl.mod as below
And the kcl.mod.lock
And these incomplete information does not support updating the dependency for
helloworld
whenkcl mod update
orkcl run
. The link betweenhelloworld
andnew_helloworld
is missing.Solution
Referring to cargo, add a
package
field to declare the association between new name and old name inkcl.mod
.Here is a example:
The text was updated successfully, but these errors were encountered: