Git Product home page Git Product logo

Comments (8)

iawia002 avatar iawia002 commented on May 30, 2024 1

Adding a flag will increase the cost of use, so we can just try the two URLs separately in our code: if we fetch the {package}-cask URL failed, try fetching the {package} URL again.

from cask.rs.

iawia002 avatar iawia002 commented on May 30, 2024 1

If there is no rush I can implement this feature.

from cask.rs.

axetroy avatar axetroy commented on May 30, 2024

I can understand that this may make people confused or have invasiveness.

Imagine what happens in the same directory in the same directory?

In order to fetch Cask.toml file, We have to clone the entire project, for some large projects, this seriously affects the speed

Or if you have any better suggestions, welcome

from cask.rs.

iawia002 avatar iawia002 commented on May 30, 2024

In order to fetch Cask.toml file, We have to clone the entire project, for some large projects, this seriously affects the speed

This could indeed lead to some problems.

I didn't think of a good solution, what do you think about us supporting both ways? Either in the project repo or in a separate repo, with preference given to trying to fetch it from the separate repo.

from cask.rs.

axetroy avatar axetroy commented on May 30, 2024

with preference given to trying to fetch it from the separate repo.

How about adding a new flag?

By default, it is still getting from a separate repo

But we can add a FLAG to get it from the current repo.

cask install github.com/iawia002/lux --current

from cask.rs.

axetroy avatar axetroy commented on May 30, 2024

Adding a flag will increase the cost of use, so we can just try the two URLs separately in our code: if we fetch the {package}-cask URL failed, try fetching the {package} URL again.

LGTM

from cask.rs.

axetroy avatar axetroy commented on May 30, 2024

If there is no rush I can implement this feature.

Nice!

from cask.rs.

axetroy avatar axetroy commented on May 30, 2024

if we fetch the {package}-cask URL failed

Here is the method to how detect the repo exists or not #8

from cask.rs.

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.