Skip to content

pkg_deb: compute Installed-Size automatically when unset - #1079

Closed
chouquette wants to merge 1 commit into
bazelbuild:mainfrom
chouquette:installed-size-auto-compute
Closed

chouquette wants to merge 1 commit into
bazelbuild:mainfrom
chouquette:installed-size-auto-compute

Conversation

@chouquette

Copy link
Copy Markdown
Contributor

The Installed-Size control field can be set through the installed_size attribute, but it requires knowing the package size ahead of time and hardcoding it, which is unpractical.

This is likely to cause the attribute to be omitted and the installed size metadata to be missing.

This PR now automatically computes the installed size when the attribute is not explicitly provided.

The `Installed-Size` control field can be set through the
`installed_size` attribute, but it requires knowing the package size
ahead of time and hardcoding it, which is unpractical.

This is likely to cause the attribute to be omitted and the installed
size metadata to be missing.
This commit now automatically computes the installed size when the
attribute is not explicitly provided.
@chouquette
chouquette force-pushed the installed-size-auto-compute branch from f33e3f7 to c355a4b Compare September 17, 2026 12:28
@chouquette
chouquette marked this pull request as ready for review September 17, 2026 12:28

@cgrindel cgrindel left a comment

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.

LGTM. I'll leave it open so that @aiuto can take a look.

@aiuto

aiuto commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

I think what I would rather see is the size (and checksums?) being a side effect output the tarball maker.
That eliminates a second pass over the file. Let's prototype that in datadog-agent, and then upstream what works.

@aiuto

aiuto commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

This is what I have been thinking about w.r.t. improving the performance. I should have wrote this a half a year ago, when I first realized I needed to go there.
#1080

@chouquette

Copy link
Copy Markdown
Contributor Author

Superseded by #1083

@chouquette chouquette closed this Oct 1, 2026
@chouquette
chouquette deleted the installed-size-auto-compute branch October 1, 2026 07:23
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