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

Renaming a package #2770

Closed
holgerteichgraeber opened this issue Aug 19, 2019 · 4 comments
Closed

Renaming a package #2770

holgerteichgraeber opened this issue Aug 19, 2019 · 4 comments

Comments

@holgerteichgraeber
Copy link

I would like to rename my package ClustForOpt to TimeSeriesClustering. https://github.com/holgerteichgraeber/TimeSeriesClustering.jl

However, JuliaRegistrator gives me the following when I do @JuliaRegistrator register:
Error while trying to register: Changing package names not supported yet .

What should I do to rename my package?

This is a crossreference of the same issue in JuliaRegistrator: JuliaRegistries/Registrator.jl#211

@visr
Copy link
Contributor

visr commented Aug 20, 2019

I see one example of a renaming PR, #2438, but it got closed in favour of registering a new package, #2535. I believed the new Pkg design would make renaming possible, since the UUID stays the same?

@KristofferC
Copy link
Member

Theoretically yes, but since it never got tested properly there is currently (arguably) a bug in Julia package loading code that makes renaming a package break all packages that use the old name.

The package loading code could potentially look in the Project file for the UUID of the renamed package but this doesn't currently happen.

@holgerteichgraeber
Copy link
Author

Ok, since I would like to rename the package now, I assume I will have to register it as a new package. How do I generate a new uuid?
Can I just run?

] generate TimeSeriesClustering

@DilumAluthge
Copy link
Member

Since #2898 has been merged, can we close this issue?

paraynaud referenced this issue in JuliaSmoothOptimizers/KnetNLPModels.jl Jun 28, 2022
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

5 participants