Comments (8)
@hans-d I tried to reproduce the issue with config
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: sponnet
contents:
- path: xyz
http:
url: https://github.com/spinnaker/sponnet/archive/refs/tags/v1.26.0.tar.gz123
First I run without --json
and got error message in output:
$ vendir sync -f vendir.yaml
Fetching: sponnet + xyz (http from https://github.com/spinnaker/sponnet/archive/refs/tags/v1.26.0.tar.gz123)
vendir: Error: Syncing directory 'sponnet':
Syncing directory 'xyz' with HTTP contents:
Downloading URL:
Expected 200 OK, but was '404 Not Found'
With --json
, it exited without any error or any log:
$ vendir sync -f vendir.yaml --json
Did you get something different output if yes can you please add here your config and steps you followed? (It will be helpful in future)
After trying out above config I can see there is bug in vendir sync --json
output. In case of failure with flag --json
as well it should show error message.
from vendir.
This is the kind of thing i'm facing. It should produce an error (stderr or in json), and exit with a non-zero status
from vendir.
@Zebradil what do you think about this?
@100mik I think that, in case of an error, vendir --json
should:
- print nothing to the stdout
- print a plain text error to the stderr
- exit with a non-zero exit code
from vendir.
Hey @hans-d can you provide a sample vendir.yaml for us to look at?
It sounds like you have ../
as part of a path, is that correct?
from vendir.
The '../' is part of the source directory:
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: somewhere
contents:
- path: over/the/rainbow
directory:
path: ../src/foo # non-existing
from vendir.
This issue is seen in kbld & imgpkg too?
from vendir.
Not using those, so can't say.
from vendir.
Same issues seen in imgpkg and kbld as well. Issues created are:
carvel-dev/kbld#455
carvel-dev/imgpkg#631
from vendir.
Related Issues (20)
- Error when using --directory and --locked option at the same time HOT 1
- Use vanity urls to change the go module name
- issue with lazy sync functionality HOT 1
- Vendir directory sync ignores overlapping paths on directories HOT 3
- Timeouts when attempting to use vendir with a registry with a significant amount of tags HOT 3
- Concurrent vendir processes interfere with each other
- Lazy sync doesn't work for the same path in different forms HOT 1
- Vendir allows self-destructing configuration HOT 4
- Vendir is failing to fetch content if private-key does not have newline at the end
- Vendir allows to use unsafe paths in configuration HOT 2
- Syncing OCI helm chart with semver version range fails if tag has a v prefix HOT 2
- Vendir sync with http on windows fails because of a missing close before rename HOT 2
- Support forcing basic authentication for git HOT 4
- Version checker errors when consumed as library
- Update copyright headers
- can't install on old fedora HOT 2
- Configurable output verbosity HOT 1
- A 'dev' mode to preserve local changes in git/hg repositories HOT 4
- Panic in `vendir sync` HOT 2
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 vendir.