Comments (11)
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.
Confirmed it works on v0.3.5
from fetch.
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.
The --source-path
flag is required for pulling certain files from our own internal repos.
from fetch.
@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:
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.
@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.
@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.
@josh-padnick Could you chime in here?
from fetch.
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.
@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.
https://github.com/gruntwork-io/fetch/releases/tag/v0.3.9
from fetch.
Related Issues (20)
- Write file to stdout HOT 1
- Prevent silent fail HOT 4
- No Bug, but need Help HOT 1
- Support for fetching multiple tools using some declarative configuration
- Does not run on Raspberry Pi 3 HOT 2
- Fetch CVE-2022-27664 HOT 2
- Fine-grained Github Tokens?
- Download latest release regardless of tag
- Does not work on Raspberry Pi 3 running Ubuntu Server 20.04 HOT 1
- Support git refs
- Handle tags that do not follow semantic versioning
- ARM compiled binary HOT 4
- How to add all release files that end with file extension HOT 2
- Certain repos fail silently HOT 7
- fetch no longer works with just --branch HOT 1
- Use a proper logger HOT 1
- Fetching asset files with + signs causes them not to be found. HOT 2
- Does fetch support git-lfs? HOT 4
- HTTPS and Self-Signed Certificate support HOT 2
- Cannot install on FreeBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fetch.