Code Monkey home page Code Monkey logo

homebrew-tap's Introduction

Homebrew Tap for Snyk

Installing the tap will provide access to software via Homebrew:

brew tap snyk/tap

Installing individual software tools can then be done as follows:

For the Snyk CLI:

brew install snyk

For the Snyk IaC Rules SDK:

brew install snyk-iac-rules

homebrew-tap's People

Contributors

asaf92 avatar bastiandoetsch avatar bikochan avatar chdorner-snyk avatar cloud-dev-ex avatar dragos-cojocari avatar garethr avatar goreleaserbot avatar ipapast avatar issyl0 avatar j-luong avatar jackub avatar peterschafer avatar snyksec avatar team-hammerhead avatar thisislawatts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebrew-tap's Issues

brew install snyk fails

› sw_vers
ProductName: macOS
ProductVersion: 12.6.1
BuildVersion: 21G217

› brew install snyk

Error: snyk: /opt/homebrew/Library/Taps/snyk/homebrew-tap/Formula/snyk.rb:4: syntax error, unexpected <<, expecting end
<<<<<<< HEAD
^~
/opt/homebrew/Library/Taps/snyk/homebrew-tap/Formula/snyk.rb:13: syntax error, unexpected ===, expecting end
=======
^~~
/opt/homebrew/Library/Taps/snyk/homebrew-tap/Formula/snyk.rb:22: syntax error, unexpected >>, expecting end
>>>>>>> 2e33120 (Upgraded to la...
^~
/opt/homebrew/Library/Taps/snyk/homebrew-tap/Formula/snyk.rb:22: syntax error, unexpected ')', expecting end
...pgraded to latest Snyk version)
...                              ^
/opt/homebrew/Library/Taps/snyk/homebrew-tap/Formula/snyk.rb:32: syntax error, unexpected end-of-input, expecting end

Add unit tests, and refactor the render script

This works as a proof of concept, but it would be nice to tidy up the basic render script and add some tests while it's fresh. Doesn't need to stay in Ruby, just had the benefit of having everything needed in the standard library.

Issues upgrading/installing «snyk» and «snyk-iac-rules»

Today I've found that brew started to fail to upgrade/install snyk and snyk-iac-rules. As of look of it, it seemed to be not related to snyk in itself and I found this Homebrew/homebrew-core#119162 issues which looked somewhat similar.
To unblock brew upgrade for other packages I needed to uninstall snyk and snyk-iac-rules and could never install them back.
Hoping you can help finding root of the issue and/or pushing this to brew. Thanks.

> brew install snyk/tap/snyk
==> Fetching snyk/tap/snyk
==> Downloading https://static.snyk.io/cli/v1.1090.0/snyk-linux
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/63f99e77be8042f5b26a0ab4af6ed53c09eb5543d7e4f4fe060d0237a9ad26c4--snyk-linux
==> Installing snyk from snyk/tap
Error: An exception occurred within a child process:
  NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x0000000008a37390>
Did you mean?  version_scheme

> brew install snyk/tap/snyk-iac-rules
==> Fetching snyk/tap/snyk-iac-rules
==> Downloading https://github.com/snyk/snyk-iac-rules/releases/download/v1.6.0/snyk-iac-rules_1.6.0_Linux_x86_64.ta
Already downloaded: /home/giermulnik/.cache/Homebrew/downloads/14d8ab981b27ceb7d588acd993481b80b771fd493d3177d5cc1cf6b863cfd671--snyk-iac-rules_1.6.0_Linux_x86_64.tar.gz
==> Installing snyk-iac-rules from snyk/tap
Error: An exception occurred within a child process:
  NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x00000000084b8180>
Did you mean?  version_scheme

> brew --version
Homebrew 3.6.20-72-g8f41918-dirty
Homebrew/homebrew-core (git revision 9d2fca0f48c; last commit 2023-01-24)
Homebrew/homebrew-cask (git revision a57f5bfcee; last commit 2023-01-24)

`brew doctor` complains about a ruby file outside of formula directory

When you tap snyk's homebrew tap, brew doctor will throw a warning:

Warning: Found Ruby file outside snyk/tap tap formula directory.
(/usr/local/Homebrew/Library/Taps/snyk/homebrew-tap/Formula):
  /usr/local/Homebrew/Library/Taps/snyk/homebrew-tap/render.rb

Reproduction:
brew tap snyk/tap
brew install snyk
brew doctor

Seems like you need to keep your ruby utility scripts in a subdirectory to avoid Homebrew potentially getting confused.

Here's another repo comment thread that seemed to fix the issue: beeftornado/homebrew-rmtree#13

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.