Skip to content

Running update when a github release page has multiple types of releases causes errors #88

@mclarke47

Description

@mclarke47

Replicating

Using a lock file as follows

{
  "$schema": "https://raw.githubusercontent.com/theoremlp/rules_multitool/main/lockfile.schema.json",
 "kubebuilder_tools_etcd": {
    "binaries": [
      {
        "kind": "archive",
        "url": "https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-v1.31.0/envtest-v1.31.0-darwin-arm64.tar.gz",
        "file": "controller-tools/envtest/etcd",
        "sha256": "",
        "os": "macos",
        "cpu": "arm64"
      },
      {
        "kind": "archive",
        "url": "https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-v1.31.0/envtest-v1.31.0-darwin-amd64.tar.gz",
        "file": "controller-tools/envtest/etcd",
        "sha256": "",
        "os": "macos",
        "cpu": "x86_64"
      }
    ]
  }
}

Then running the update command results in the following error:

Encountered error while attempting to update kubebuilder_tools_etcd: HTTP status client error (404 Not Found) for url (https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.16.5/0.16.5-darwin-arm64.tar.gz)
Encountered error while attempting to update kubebuilder_tools_etcd: HTTP status client error (404 Not Found) for url (https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.16.5/0.16.5-darwin-amd64.tar.gz)

Since there are multiple types of releases on the releases page https://github.com/kubernetes-sigs/controller-tools/releases

Expected

Having some ability to filter the releases on the releases page would allow the update command to pull the correct archive

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions