Git Product home page Git Product logo

Comments (11)

brikis98 avatar brikis98 commented on June 13, 2024

Perhaps this is some unintended side effect of https://github.com/gruntwork-io/fetch/releases/tag/v0.3.6? Out of curiosity, does it work with v0.3.5?

from fetch.

Merlz avatar Merlz commented on June 13, 2024

Confirmed it works on v0.3.5

from fetch.

brikis98 avatar brikis98 commented on June 13, 2024

Thx for checking! Def sounds like some bug was introduced in #55. @vedala Any chance you recognize what the issue is off the top of your head? If not, we'll have to dig in ourselves.

@Merlz Out of curiosity, was there something in 0.3.7 that you needed?

from fetch.

Merlz avatar Merlz commented on June 13, 2024

The --source-path flag is required for pulling certain files from our own internal repos.

from fetch.

vedala avatar vedala commented on June 13, 2024

@brikis98 The error encountered by @Merlz is definitely due to changes I made in #55.

Based on a comment in gruntwork-install code, looks like gruntwork-install expects fetch to accept empty value for --branch option:

https://github.com/gruntwork-io/gruntwork-installer/blob/d7f6de01d7def76cdb21fc508a43b43e5e3511bc/gruntwork-install#L118-L119

I feel the fix I made in PR #55 is not really needed. Working backwards, I feel the bug reported in issue #31, was not really a bug. If this is needed urgently, I can submit a PR that rolls back the changes. But, to be completely sure, I think we should review the fetch's expected and actual behavior and then decide whether issue #31 should be considered a bug or not.

from fetch.

brikis98 avatar brikis98 commented on June 13, 2024

@vedala Thanks for looking into it! Yes, gruntwork-install does expect empty values to work. That way, you can set --branch, --tag, etc to variables that might be empty, and so long as one isn't empty, it should still accept it. Otherwise, we'd have to include lots of conditional logic in the gruntwork-install calls, which would prevent them from being simple one-liners. Perhaps the intended fix for #31 was that if all the values are empty, the error message should disambiguate between the arguments not being set, versus the arguments being set to empty values? @josh-padnick Is that what you had in mind?

from fetch.

vedala avatar vedala commented on June 13, 2024

@brikis98 It is likely I interpreted the bug incorrectly. Your suggestion sounds right, I will wait for confirmation @josh-padnick and submit a PR with fix.

from fetch.

brikis98 avatar brikis98 commented on June 13, 2024

@josh-padnick Could you chime in here?

from fetch.

josh-padnick avatar josh-padnick commented on June 13, 2024

You know, when I was looking through #31 myself, I had the same thought as @vedala: this isn't really an error. I'm sorry to create extra work for everyone, but I would be in favor of rolling back #55, especially if it's causing regressions.

from fetch.

vedala avatar vedala commented on June 13, 2024

@josh-padnick No problem. Thank you for confirming. I will roll back my changes made in #55 and send in a PR soon.

from fetch.

brikis98 avatar brikis98 commented on June 13, 2024

https://github.com/gruntwork-io/fetch/releases/tag/v0.3.9

from fetch.

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.