Git Product home page Git Product logo

Comments (8)

kumaritanushree avatar kumaritanushree commented on August 22, 2024

@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.

hans-d avatar hans-d commented on August 22, 2024

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 avatar Zebradil commented on August 22, 2024

@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.

joaopapereira avatar joaopapereira commented on August 22, 2024

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.

hans-d avatar hans-d commented on August 22, 2024

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.

renuy avatar renuy commented on August 22, 2024

This issue is seen in kbld & imgpkg too?

from vendir.

hans-d avatar hans-d commented on August 22, 2024

Not using those, so can't say.

from vendir.

kumaritanushree avatar kumaritanushree commented on August 22, 2024

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)

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.