Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for additional metadata along with the download URL #1

Open
Sweetchuck opened this issue Feb 18, 2024 · 0 comments
Open

Support for additional metadata along with the download URL #1

Sweetchuck opened this issue Feb 18, 2024 · 0 comments

Comments

@Sweetchuck
Copy link

Great tool. Looks like a usable alternative to PHIVE.

However I miss a few feature. (I know that this is a freshly published project.)

Checksum validation

Ability to add additional metadata to the download URL would open up the way to new features.

Similar to the cweagans/composer-patches 2.x

Current configuration format:

{
  "extra": {
    "remote-scripts": {
      "vendor/bin/foo": "<url>"
    }
  }
}

Proposed configuration format:

{
  "extra": {
    "remote-scripts": {
      "vendor/bin/foo": {
        "url": "<url>",
        "description": "optional",
        "checksum": "sha256:ugly-hash"
      }
    }
  }
}

Placeholder token for vendor/bin

The bin-dir directory can be configured.

{
  "config": {
    "bin-dir": "my-custom-bin"
  }
}

I think it would be easier (DRY) to use a variable for that in the destination path.

{
  "extra": {
    "remote-scripts": {
      "[bin-dir]/foo": {
        "url": "<url>"
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant