-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Issue/989 add zstandard support #1002
Issue/989 add zstandard support #1002
Conversation
Hi, I am not sure how this works, as I am new to aptly. I cloned your fork but it doesn't work out of the box. I have scripted to rsync my public reprepro dir and add it to my local (testing) aptly. This is a snippet of the output Local repo [jammy] successfully added. Thanks, |
Hi @eilandert! Apologies for the delay, but it's been working fine for us with packages that have a
We've built the aptly .deb to install it by using |
Hi @jvperrin I've updated the debian package with a git clone with the PR included, as I have a complete build pipeline with pbuilder for my own packages/repositories As I have totally no experience with go, there will be more adjusting to do to my package. I skimmed go.mod and at first glance I am missing some modules, not sure yet. I guess I have to invest some to investigate and learn some go basics. In the meantime I've adjusted my packages so everything will be build with xz so I'm in the clear now. Thanks! -Thijs
|
@jvperrin , i've got it working. had to create a new package first, golang-github-klauspost-compress, and add it in debian/control. I've now functional zstd aptly packages (and dockers) and can confirm it as working. As soon as this is merged I can switch back to the aptly-dev/aptly repo Thanks. |
This is great news, I will try the golang-github-klauspost-compress repo until I can switch back to the official repo! |
@ahaswell Hey! Could you please rebase against master, so we can run the revived unittests? Cheers Also, you'll have to add some unittests for this feature before merging. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work for me:
aptly repo add impish /var/tmp/deb/phar-composer_1.1.1~impish~53_all.deb
Loading packages...
[+] phar-composer_1.1.1~impish~53_all added
The package wass added into repository:
jenkins@vyvojar:~$ aptly repo show -with-packages impish
Name: impish
Comment: Impish packages
Default Distribution: impish
Default Component: main
Number of packages: 2
Packages:
apt-repo-vitexsoftware_0.3~impish~21_all
phar-composer_1.1.1~impish~53_all
vs current master (without zstd support):
aptly repo add impish /var/tmp/deb/apt-repo-vitexsoftware_0.3~impish~19_all.deb
Loading packages...
[!] Unable to read file /var/tmp/deb/apt-repo-vitexsoftware_0.3~impish~19_all.deb: unsupported tar compression in /var/tmp/deb/apt-repo-vitexsoftware_0.3~impish~19_all.deb: control.tar.zst
[!] Some files were skipped due to errors:
/var/tmp/deb/apt-repo-vitexsoftware_0.3~impish~19_all.deb
ERROR: some files failed to be added
Maintainers please merge this pullrequest.
In the meanwhile, I have a rebased patch for master on https://github.com/eilandert/dockerized/blob/master/aptly/zstd.patch |
Once the PR is rebased against the latest master, I can run the test suite. Tests for this specific feature are still missing: we need them in order to be able to merge it, as per guidelines. |
aptly cannot handle zst compression yet, see T1813 and aptly-dev/aptly#1002. Work around by setting compression method to xz.
Since this PR seems to be stalled waiting on a rebase, I've opened a fresh PR here with the same changes. |
added zstandard decompression to support ubuntu 21.10
#965 seems to be abandoned so raising this pr to get #989 done.
Included support for control file as per @svanzoest request.