wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

Can not install via brew? #288

Open bradennapier opened 3 years ago

bradennapier commented 3 years ago
➜  ~ brew install awless
Warning: You are using macOS 11.0.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.

==> Installing awless from wallix/awless
==> Cloning https://github.com/wallix/awless.git
Updating /Users/user1/Library/Caches/Homebrew/awless--git
==> Checking out tag v0.1.11
HEAD is now at d6094ca Bumping version before release
HEAD is now at d6094ca Bumping version before release
Error: An exception occurred within a child process:
  NoMethodError: undefined method `prefer_64_bit?' for OS::Mac:Module
cixtor commented 3 years ago

@bradennapier I’d consider this project deprecated. Many of the features do not work anymore, for example, the command awless inspect -i pricer among others depend on a 3rd-party API hosted at http://ec2-price.com that doesn’t exist anymore. Also, the AWS-SDK used to compile version 0.1.11 is old and many of the APIs they are using here are no more.

If you still want to install this program knowing the project is broken, you can use the following Homebrew formula:

class Awless < Formula
  version "v0.1.11"
  desc "The Mighty CLI for AWS"
  homepage "https://github.com/wallix/awless"
  url "https://github.com/wallix/awless/releases/download/v0.1.11/awless-darwin-amd64.tar.gz"
  sha256 "f4bf6e680b712087eab2046a9585da647589d2e924944d1dce6e3b6681b9c126"
  head "https://github.com/wallix/awless.git"

  def install
    bin.install "awless"
  end

  test do
    run_output = shell_output("#{bin}/awless --help 2>&1")
    assert_match "Awless is a powerful command line tool to inspect, sync and manage your infrastructure", run_output
  end
end
bradennapier commented 3 years ago

Thanks, yeah I realized after posting how long ago the last commit was :)