Coder Social home page Coder Social logo

Project.toml about bootstrap.jl HOT 10 CLOSED

juliangehring avatar juliangehring commented on May 30, 2024
Project.toml

from bootstrap.jl.

Comments (10)

colintbowers avatar colintbowers commented on May 30, 2024 2

OK, very clear answer from Stefan on the linked Discourse thread. REQUIRE is being retired soon, so Bootstrap will need a Project.toml. I've actually already done this as part of my work on #45, so if you're happy to wait a week or two, the file can just come through as part of my PR.

from bootstrap.jl.

juliangehring avatar juliangehring commented on May 30, 2024

Well, it doesn't have one... I looked into adding one beginning of this year, but didn't see big advantages from my point of view. What would be the benefits of having the new toml files in your opinion?

from bootstrap.jl.

colintbowers avatar colintbowers commented on May 30, 2024

It is not so much advantages, but more the fact that I'm pretty sure (although not certain) that you will need a Project.toml file at some point. Currently Pkg supports both REQUIRE files and Project.toml (which is essentially the replacement for REQUIRE), but I think the plan is to eventually get rid of REQUIRE files entirely.

To be honest, I'm surprised this hasn't caused a problem for Bootstrap already. Have you tried to change the dependencies of Bootstrap since Julia v1.0? I've checked out Bootstrap into a development branch, and although it compiled fine initially, as soon as I changed the dependencies (by adding a using DependentBootstrap) it refused to compile until I added a Project.toml file to the development branch. Certainly if you use Pkg to generate a new package today, it will auto-generate a Project.toml file and package uuid for you.

from bootstrap.jl.

juliangehring avatar juliangehring commented on May 30, 2024

I have been using and developing the package without a manifest without problems, both with julia v1.0 and v1.1. Let me see if I can reproduce your findings.

from bootstrap.jl.

colintbowers avatar colintbowers commented on May 30, 2024

Sounds good. In the meantime, I might post a clarifying question about this to Discourse for my own edification. If the intention really is for all packages to migrate from REQUIRE to Project.toml it would probably be a good idea to have this stated in a Discourse thread by a core dev.

from bootstrap.jl.

colintbowers avatar colintbowers commented on May 30, 2024

Discourse question here. I'll be interested to see what the response is, since I've done some wider reading on this now, and some of the posts about the future of this stuff seem quite contradictory.

In the short term though, my reading agrees with your experience, i.e. I should have been able to alter the dependencies for Bootstrap with just a REQUIRE file without any problems. I'll look at it again this week. Please don't waste too much of your own time in the meantime :-)

from bootstrap.jl.

rofinn avatar rofinn commented on May 30, 2024

NOTE: Project.toml files work nicely with a Pkg3 environment based workflow. For example, running julia --project=@. in the root package directory will create a custom environment just for that package. This potentially avoids version incompatibilities with other dev'd packages and means that any packages added will automatically update the Project.toml.

from bootstrap.jl.

juliangehring avatar juliangehring commented on May 30, 2024

@colintbowers Alright, thanks for getting some clarification on that issue. If you already have Project.toml and Manifest.tomllying around, would you mind opening a separate PR for that? It can be super quick and dirty (essentially just dumping the two prototypes of the files is fine, I can take it from there); but since missing those files is causing problems for working with the package for you (and potentially other), I'd like to get this in rather sooner than later. If you are busy with other things, I can also take a stab at this myself. Let me know what you prefer.

from bootstrap.jl.

colintbowers avatar colintbowers commented on May 30, 2024

No probs, I'll get it done tonight, or at the latest tomorrow night (Australia time).

from bootstrap.jl.

juliangehring avatar juliangehring commented on May 30, 2024

Closed with #48.

from bootstrap.jl.

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.