Skip to content

dev tools updates#6774

Merged
tonistiigi merged 7 commits into
moby:masterfrom
tonistiigi:0513-dev-tools-updates
May 15, 2026
Merged

dev tools updates#6774
tonistiigi merged 7 commits into
moby:masterfrom
tonistiigi:0513-dev-tools-updates

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Various dev tools updates after v0.30 milestone close

Copy link
Copy Markdown
Collaborator

@jsternberg jsternberg left a comment

Choose a reason for hiding this comment

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

Can you split out the root fs stuff into a different PR so those can be evaluated separately? Everything else looks fine beyond one minor nitpick and I don't want to hold up the rest of the PR just because I need more time to look at the root fs stuff.

Comment thread cache/refs.go Outdated
@tonistiigi tonistiigi force-pushed the 0513-dev-tools-updates branch from 808dc56 to c1a2d9b Compare May 13, 2026 23:27
@tonistiigi
Copy link
Copy Markdown
Member Author

Can you split out the root fs stuff into a different PR so those can be evaluated separately?

This would mean I can't update the linter because the updated linter is requiring these changes. It's the "path traversal" from https://github.com/securego/gosec/blob/master/RULES.md#g7xx-taint-analysis

@jsternberg
Copy link
Copy Markdown
Collaborator

OK I'll take an in depth look at the root filesystem stuff and we can keep these together.

if err != nil {
panic(err)
}
defer root.Close()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This defer happens at the end of the function and not in the for loop. It might be easier to just move this to an extra function since I think this is long enough that the defers are helpful and I think an anonymous function would be distracting.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I just removed it from here. Not needed in this helper app and breaks symlinks.

Update golangci-lint and adjust code for new gosec diagnostics. Use
root-scoped filesystem operations where appropriate, preserve explicit
user path behavior for SSH keys, and avoid background contexts in
request-scoped cleanup paths.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Update non-generated code for the newer lint recommendations by using typed
atomic values, strings.Cut, and slices.Backward where applicable.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi force-pushed the 0513-dev-tools-updates branch from c1a2d9b to 64f364f Compare May 14, 2026 17:13
@tonistiigi tonistiigi merged commit 550cf8b into moby:master May 15, 2026
192 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants