Skip to content

Support tar.gz archives #431

@thompson-tomo

Description

@thompson-tomo

Describe the problem/challenge you have
I want to be unpack the source code of the github release which i am syncing.

Describe the solution you'd like
The supported archive type extended to include tar.gz similiar to what is proposed in #207

Anything else you would like to add:
I am aware that i could sync git repo's directly however the use case i am interested in as following.

Semantic conventions perform a github release, projects which consume the conventions would get a renovate pr to update the version. As part of this renovate pr ci tasks run to generate the new artifacts based on the latest semantic conventions.

My config is:

apiVersion: vendir.k14s.io/v1alpha1
kind: Config

directories:
- # path is relative to `vendir` CLI working directory
  path: semantic_conventions/tmp
  contents:
  - path: semconvrepo2
    githubRelease:
      # slug for repository (org/repo) (required)
      slug: open-telemetry/weaver
      # use release tag (optional)
      # optional if tagSelection is specified (available in v0.22.0+)
      tag: v0.19.0
      disableAutoChecksumValidation: true
      # specifies which archive to unpack for contents (optional)
      unpackArchive:
        # (required)
        path: source.tar.gz

Currently when i run the vendir sync command I get the following:

Fetching: semantic_conventions/tmp + semconvrepo2 (github release open-telemetry/[email protected])

vendir: Error: Syncing directory 'semantic_conventions/tmp':
  Syncing directory 'semconvrepo2' with github release contents:
    Expected known archive type (zip, tgz, tar)

Note this is an extension/complementary to #432


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    carvel-triageThis issue has not yet been reviewed for validityenhancementThis issue is a feature request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions