Skip to content

Conversation

@Itxaka
Copy link
Collaborator

@Itxaka Itxaka commented Jan 9, 2026

  • Introduced build tags to enable or disable the unpack image functionality
  • Added a new file unpack_image_disabled.go to handle cases when unpacking is disabled
  • Updated existing files to accommodate the new build tag structure

This allows yip consumers to not build the unpack plugin if desired which saves 1243kB of deps from the following deps:

  • github.com/google/go-containerregistry -> 512 kB
  • github.com/docker/docker -> 391 kB
  • go.opentelemetry.io/otel -> 340 kB

- Introduced build tags to enable or disable the unpack image functionality
- Added a new file `unpack_image_disabled.go` to handle cases when unpacking is disabled
- Updated existing files to accommodate the new build tag structure

This allows yip consumers to not build the unpack plugin if desired which saves 1243kB of deps from the following deps:

 - github.com/google/go-containerregistry -> 512 kB
 - github.com/docker/docker -> 391 kB
 - go.opentelemetry.io/otel -> 340 kB

Signed-off-by: Itxaka <itxaka@kairos.io>
@jimmykarily
Copy link
Collaborator

Which consumer is going to skip unpack? I think at least kairos-agent depends on this functionality, I'm not sure about other consumers (immucore?)

@Itxaka
Copy link
Collaborator Author

Itxaka commented Jan 9, 2026

Which consumer is going to skip unpack? I think at least kairos-agent depends on this functionality, I'm not sure about other consumers (immucore?)

yep, immucore is the main one but some other could benefit, like kairos-init I think which should skip the git and the unpack, although it doesnt hurt that much in that case as we dont ship init anywhere that it matters

Copy link
Collaborator

@jimmykarily jimmykarily left a comment

Choose a reason for hiding this comment

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

As long as default is "on" I'm good with it.

@Itxaka
Copy link
Collaborator Author

Itxaka commented Jan 9, 2026

As long as default is "on" I'm good with it.

it should, only if the tag is set while building it will change behavior. It should be otherwise transparent

@Itxaka Itxaka merged commit e195bb8 into master Jan 9, 2026
6 checks passed
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.

3 participants