Skip to content

Request: mechanism to alias a local file #40

@groodt

Description

@groodt

Speculative request that might be solved to some extent with Custom Providers.

There might be some scenario where a binary or tool is "in-tree" built via something like buck2/bazel. Having to distribute this tool to an artifact store (http / github) can sometimes be additional friction to local development. Particularly in scenarios where there might be many references.

It could be nice to facilitate some kind of convenience redirection for local development that invokes the buck2/bazel target instead of the downloaded binary from artifact storage.

So something like an in-tree-path (bikeshed name):

    "macos-x86_64": {
      "size": 10600817,
      "hash": "blake3",
      "digest": "25f984911f199f9229ca0327c52700fa9a8db9aefe95e84f91ba6be69902436a",
      "format": "tar.gz",
      "path": "hermes",
      "in-tree-path": "buck-out/darwin_arm64-fastbuild/bin/foo/bin/hermes", 
      "providers": [
        {
          "url": "https://github.com/facebook/hermes/releases/download/v0.12.0/hermes-cli-darwin-v0.12.0.tar.gz"
        },
        {
          "type": "github-release",
          "repo": "facebook/hermes",
          "tag": "v0.12.0",
          "name": "hermes-cli-darwin-v0.12.0.tar.gz"
        }
      ],

It should avoid the hash and digest checks and only work with an environment variable active.

This would avoid having to find-replace references to tools/dotslash/bin/hermes in various scripts that might be using an in-tree tool.

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