Giter Club home page Giter Club logo

asdf-sops's People

Contributors

benjefferies avatar bm1549 avatar chulkilee avatar elementalvoid avatar feniix avatar khassel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

asdf-sops's Issues

Assets now have the architecture as suffix

I tried to install v3.8.1 of SOPS, but it fails, because the file name has changed:

$ asdf install sops 3.8.1
Downloading sops from https://github.com/mozilla/sops/releases/download/v3.8.1/sops-v3.8.1.linux
Error: URL responded exceptionally
chmod: cannot access '/home/jan/.asdf/installs/sops/3.8.1/bin/sops': No such file or directory

The file is not called sops-v3.8.1.linux (since 3.8.0-rc.1). Instead it is now called sops-v3.8.1.linux.amd64 (for linux).

Repository moved permanently

It looks like the SOPS repository moved from https://github.com/mozilla/sops to https://github.com/getsops/sops. As a result, the list-all curl call returns this JSON:

{
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/40684033/releases",
  "documentation_url": "https://docs.github.com/v3/#http-redirects"
}

This does obviously not work for listing the actual versions. I suspect, installation versions does also break.

As a solution, the URL should be changed to the new one and the curl-call should follow redirects to not break when something like this happens again.

"asdf list all sops" does not work

Thanks for this plugin ๐Ÿ‘
Unfortunately, the list versions does not seem to work.
Seems related to a github API rate limit on mozilla/sops repo... can you confirm ?
If this is the case, is it possible to return a user-friendly error in the list-all script please ?

Install can download the same version multiple times

I see that there is logic to prepend v to the version number if it is before a version:

https://github.com/feniix/asdf-sops/blob/master/bin/install#L17

  if [[ ! (${version} =~ [1-3]\.[0-4]) ]]; then
    # version is greater than 3.4.0
    version="v${version}"
  fi

The install path does not respect this, as such you can have a scenario where the same version can be downloaded twice.

asdf install sops 3.6.0
asdf install sops v3.6.0

$ ls ~/.asdf/installs/sops/
3.6.0 v3.6.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.