Code Monkey home page Code Monkey logo

Comments (5)

timziebart avatar timziebart commented on June 23, 2024

How is the process here? While certainly not being high-prio, it would be nice if it were solved.

from general.

StefanKarpinski avatar StefanKarpinski commented on June 23, 2024

There is a solution: if you are registering a package in METADATA, then you should use the utility function Pkg.METADATA_compatible_uuid to generate a UUID for your project, e.g.:

julia> Pkg.METADATA_compatible_uuid("MyPkg")
UUID("793ebe2b-975c-555a-bd0c-65619c3a03ab")

from general.

timziebart avatar timziebart commented on June 23, 2024

Oh, nice, thanks!

from general.

tpapp avatar tpapp commented on June 23, 2024

I think the issue was closed a bit prematurely, for two reasons:

  1. Pkg.METADATA_compatible_uuid is a workaround, not solution, and then it is not easily discoverable. A user could just set up a Project.toml by just reading the relevant manuals (Julia's docs, Pkg docs, etc) and never learn about it, running into the issue only when registering the package (and then it is pretty insidious, as mismatching UUIDs can give surprising behavior when one is unaware that this is a possibility).

  2. I still don't understand why the registry has to do this. I understand that historically, packages had no UUIDs so one had to be generated, but that is becoming less and less common.

from general.

StefanKarpinski avatar StefanKarpinski commented on June 23, 2024

The issue is in the wrong place, first off—there's no code here. Once we switch the registration process to registering directly with the General registry then this won't be an issue any more. So the solution to this problem is to implement JuliaLang/Pkg.jl#849.

from general.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.