Skip to content

Conversation

@thesayyn
Copy link
Contributor

@thesayyn thesayyn commented Sep 5, 2025

Fixes #123 #56 #66 #124

Comment on lines +188 to +189
`apt.install` will install generate a package repository for each package and architecture
combination in the form of `@<TARGET_RELEASE>_<PKG_NAME>_<PKG_ARCH>`.
Copy link

Choose a reason for hiding this comment

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

Could there be a way to specify the package version too? Regenerating the lock file currently always use the latest version but sometimes we could want older ones for compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we support version constraints.

@baxelrod-bdai
Copy link

I'd find this feature very useful. I hope it gets merged soon!

@thesayyn
Copy link
Contributor Author

thesayyn commented Oct 1, 2025

Still working on this, there will be some breaking changes but this will eventually land./

@gfrankliu
Copy link
Contributor

Hope this supports "postinst" script, or at least provides a hook for people to manually add a few commands from "postinst".

@loosebazooka
Copy link
Contributor

Hope this supports "postinst" script, or at least provides a hook for people to manually add a few commands from "postinst".

@gfrankliu post int is just too hard to support as you must execute it within the context of a container. You're better off doing that with a dockerfile or something.

@gfrankliu
Copy link
Contributor

Hope this supports "postinst" script, or at least provides a hook for people to manually add a few commands from "postinst".

@gfrankliu post int is just too hard to support as you must execute it within the context of a container. You're better off doing that with a dockerfile or something.

That's why I was suggesting providing a "hook" so that people can run the equivalent postint script. Users can read/understand the package provided postinst and write a compatible/equivalent script that can run using the "hook".

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.

FR: An alternative API design for easier apt.install

7 participants