Pkg.jl: Generating a Project.toml file for an existing package

Created on 21 Mar 2018  路  10Comments  路  Source: JuliaLang/Pkg.jl

Adding a package with Pkg3 currently produces a warning

Warning: packages will require to have a [Julia]Project.toml file in the future

(Gramatical aside - shouldn't that be "will be required to have a ..." or just "will require a ..."?)

I can see that Pkg3.generate and its REPL equivalent produce such a file and that the Compat package has this file but it wasn't clear to me how it is to be generated (and updated?) for an existing package.

feature request priority

Most helpful comment

What's the process for generating the Project.toml file for an existing package that is not registered in METADATA.jl?

All 10 comments

Yes, should be added.

We're going to make PRs for all registered packages at some point, generating UUIDs based on the current registered names 鈥撀爐hat's how we've been doing it in the Uncurated registry. After that, going forward, new packages will generate random UUIDs instead.

Can I count on the uuid currently associated with a package being the eventual uuid for the package?

P.S. Let me know if you would prefer that I just wait for this to roll out and let you spend your time doing real work instead of responding to my questions.

Yes, you can count on it: since the current METADATA is a shared global namespace, we're going to assign UUIDs to all packages in METADATA based on their registered names. I don't mind answering questions 鈥撀爉y current work is writing docs and answering questions, so knowing what people are wondering about is quite helpful 馃槂

What's the process for generating the Project.toml file for an existing package that is not registered in METADATA.jl?

Doc request for generating Project.toml file for an existing package seconded; are there any early adopter examples (packages outside the stdlib) using Pkg/Pkg3?

Compat.jl.

In case anyone else happens upon this issue/request, MPI.jl after https://github.com/JuliaParallel/MPI.jl/pull/210 is a good example for how the new Pkg interacts with CI

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jebej picture jebej  路  3Comments

GregPlowman picture GregPlowman  路  3Comments

jlperla picture jlperla  路  3Comments

cossio picture cossio  路  3Comments

cossio picture cossio  路  3Comments