luet icon indicating copy to clipboard operation
luet copied to clipboard

create-repo: defaults to .tar.gz as compressionType for repository metadata

Open geaaru opened this issue 4 years ago • 2 comments

create-repo: repository.yaml doesn't contain sha for metadata tarball:

description: Mocaccino extra amd64
last_update: "1602061287"
metapath: ""
name: mocaccino-extra
priority: 1
repo_files:
  meta:
    compressiontype: gzip
    filename: repository.meta.yaml.tar.gz
  tree:
    checksums:
      sha256: c9e7abc75e9b4ccf327647af704ef2adccc5c288aad442711f0dcd13eec92989
    compressiontype: gzip
    filename: tree.tar.gz
revision: 15
treepath: ""
type: http
urls:
- http://localhost:8000

geaaru avatar Oct 09 '20 05:10 geaaru

We should turn https://github.com/mudler/luet/blob/master/cmd/create-repo.go#L145 to gzip by default

mudler avatar Oct 10 '20 16:10 mudler

Might require tests to be adapted, but should be an easy one

mudler avatar Jan 06 '21 11:01 mudler