Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gobump - Should the 'deps' field be required? #37

Open
mamccorm opened this issue Aug 16, 2024 · 1 comment
Open

gobump - Should the 'deps' field be required? #37

mamccorm opened this issue Aug 16, 2024 · 1 comment
Assignees

Comments

@mamccorm
Copy link

We've a scenario were our automation is removing a previously bumped go dependency, and this is causing build failures, as 'deps' is a required property when 'replaces' is set. Summarised details below:


Take the following example:

- uses: go/bump
  with:
    deps: github.com/mholt/archiver/v3@v3.5.1
    replaces: github.com/mholt/archiver/v3=github.com/anchore/archiver/v3@v3.5.2

Lets assume thatgithub.com/mholt/archiver/v3@v3.5.1 is now remediated, and delete the 'deps' line:

- uses: go/bump
  with:
    replaces: github.com/mholt/archiver/v3=github.com/anchore/archiver/v3@v3.5.2

This results in:

unable to validate with: required input "deps" for pipeline is missing

@hectorj2f
Copy link
Member

@mamccorm Thanks for opening the issue.

@roaksoax roaksoax changed the title Should the 'deps' field be required? gobump - Should the 'deps' field be required? Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants