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

chore: update deps #783

Merged
merged 1 commit into from
Mar 11, 2024
Merged

chore: update deps #783

merged 1 commit into from
Mar 11, 2024

Conversation

lzap
Copy link
Member

@lzap lzap commented Mar 11, 2024

Updates deps.

I had to create a new command within the main binary to be able to easily update deps one by one. Several deps fail to update because Go 1.21 is required. This workrounds this nicely.

@lzap lzap force-pushed the update-deps branch 3 times, most recently from 3b09fc5 to bbdb792 Compare March 11, 2024 09:52
Signed-off-by: Lukas Zapletal <[email protected]>
if bi, ok := debug.ReadBuildInfo(); ok {
for _, dep := range bi.Deps {
fmt.Printf("updating %s\n", dep.Path)
cmd := exec.Command(goCmd, "get", "-u", dep.Path)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is marked as a possible problem in Snyk, I believe this is okay for a "helper" script.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe lets move it to scripts/ as separate go main?
so it's not executable from the production binary and then it's for sure ok.

Copy link
Member

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me, if you feel moving to /script is too much, lets keep it as is :)
Up to you, feel free to merge ;)

@lzap lzap merged commit b9c876a into RHEnVision:main Mar 11, 2024
8 checks passed
@lzap lzap deleted the update-deps branch March 11, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants