Git Product home page Git Product logo

Comments (6)

MasterQ32 avatar MasterQ32 commented on September 24, 2024 4

Counter-proposal to the comment by @zenith391:

{
  "dependencies": {
    "didot-window": [ "didot-x11", "didot-glfw" ]
  }
}

Which would allow a package manager to also prompt the user which package to install, but also list available and checked options. Note that this should not be an enforcement, but a hint. You should be able to override the selection anyways

from repository.

zenith391 avatar zenith391 commented on September 24, 2024

My proposal is a bit unusual but here is what i propose: in a case where a package depends on another package but not its implementation (for example it might depend on a windowing package, but it might be a glfw or an x11 package), there should be a way for the user to choose which to use. Maybe for those case the dependency package name might be null, for example:

{
  "author": "zenith391",
  "description": "OpenGL module for Didot",
  "git": "https://github.com/zenith391/didot",
  "root_file": "/didot-opengl/graphics.zig",
  "dependencies": {
    "didot-window": null
  },
  "tags": [
    "game",
    "graphics"
  ]
}

When installing that package, the package manager should so something like prompt the user to select a package to install, and the user could type didot-x11, didot-glfw or any other windowing package he wants.

from repository.

zenith391 avatar zenith391 commented on September 24, 2024

As it seems people agreed on it, shouldn't this issue start getting implemented?

from repository.

MasterQ32 avatar MasterQ32 commented on September 24, 2024

As it seems people agreed on it, shouldn't this issue start getting implemented?

True! If you have the time, go ahead, implement it and make a PR! I will happily click merge!

from repository.

jiacai2050 avatar jiacai2050 commented on September 24, 2024

It seems that current design doesn’t consider versions, which is important for reproducible build

from repository.

MasterQ32 avatar MasterQ32 commented on September 24, 2024

Yes, but i refuse to do version tracking before Zig 1.0.0, as i consider that wasted energy, as your Zig code might break tomorrow anyways.

from repository.

Related Issues (5)

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.