Installing the tap will provide access to software via Homebrew:
brew tap snyk/tap
Installing individual software tools can then be done as follows:
brew install snyk
brew install snyk-iac-rules
An automatically updated Homebrew tap for Snyk
Home Page: https://snyk.io
Installing the tap will provide access to software via Homebrew:
brew tap snyk/tap
Installing individual software tools can then be done as follows:
brew install snyk
brew install snyk-iac-rules
› 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
Adding support for Linuxbrew is straightforward, just grab more details and add to the template. Here's what the logic in the formula looks like https://github.com/instrumenta/homebrew-instrumenta/blob/master/Formula/kubeval.rb#L10.
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.
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.