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

Can not install via brew? #288

Open
bradennapier opened this issue Aug 7, 2020 · 2 comments
Open

Can not install via brew? #288

bradennapier opened this issue Aug 7, 2020 · 2 comments

Comments

@bradennapier
Copy link

➜  ~ 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
Copy link

cixtor commented Aug 9, 2020

@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
Copy link
Author

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

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

2 participants