Skip to content

Support github release with just source code artifacts #432

@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 even when the only artifacts are source code.

Describe the solution you'd like
The checking of additional files on the release is removed and the source code *.tar.gz is always downloaded.

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/semantic-conventions
      # use release tag (optional)
      # optional if tagSelection is specified (available in v0.22.0+)
      tag: v1.38.0
      disableAutoChecksumValidation: true

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

Fetching: semantic_conventions/tmp + semconvrepo2 (github release open-telemetry/semantic-conventions@v1.38.0)

vendir: Error: Syncing directory 'semantic_conventions/tmp':
  Filtering paths in directory 'semconvrepo':
    Expected to find at least one file within directory

The support of unpacking of *tar.gz is handled via #431


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