Giter Site home page Giter Site logo

Comments (10)

GromNaN avatar GromNaN commented on July 22, 2024

👍 That would be a very nice feature

from satisfy.

h4cc avatar h4cc commented on July 22, 2024

@ludofleury What do you think about this feature? May i try to implement that?

from satisfy.

ludofleury avatar ludofleury commented on July 22, 2024

So, bacisally, if I have some a composer.lock with a mix of repos (some available on packagist, some available on a satis #1 and some available on a satis #2) What would be the behavior ?

from satisfy.

h4cc avatar h4cc commented on July 22, 2024

For my use case, i want satis to mirror all dependencies as archives. So i would import all repos from composer.lock.

from satisfy.

ludofleury avatar ludofleury commented on July 22, 2024

Oh I see.
So what should be the best way to do that ?

  • CLI command ?
  • Upload a composer.lock in a web GUI ?
  • Define a project repository url and automatically fetch the composer.lock and mirror ?

from satisfy.

h4cc avatar h4cc commented on July 22, 2024

First, i would use a simple web gui form. The Target of the form POST might be used in external systems via 'curl'.
A CLI Commands sounds nice too, but not yet needed, maybe later.
Automatically fetching is too specific i think.

from satisfy.

ludofleury avatar ludofleury commented on July 22, 2024

All right go for it !

from satisfy.

h4cc avatar h4cc commented on July 22, 2024

@ludofleury Please have a look at this commit:
h4cc@fc88972

I had a problem with your Manager->add() because of the flush() in there and the duplicate copying of the satis.json - So i created a addAll().
Then i thought about using Serializer for the composer.lock, but that would be too much overhead.

from satisfy.

ludofleury avatar ludofleury commented on July 22, 2024

@h4cc I just reviewed. It looks kiss & cool. I think about getting composer in the dependency or something to JSON validate the composer.lock with the json schema.

Serializer could be cool... but as you said, it may be too much overhead. I'll check on it after we merge your feature.

from satisfy.

h4cc avatar h4cc commented on July 22, 2024

Maybe Serializer might be too much, because we just want to read the file.
Think i will give this a try, havent used it yet but looks promising: https://github.com/justinrainbow/json-schema

from satisfy.

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.