forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request conda-forge#28160 from danielnachun/go-recipes9
add rsc-2fa, sift, snyk-ls, solt
- Loading branch information
Showing
12 changed files
with
208 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
go mod vendor || goto :error | ||
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\2fa.exe -ldflags="-s" || goto :error | ||
go-licenses save . --save_path=license-files || goto :error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o xtrace -o nounset -o pipefail -o errexit | ||
|
||
go mod vendor | ||
go build -buildmode=pie -trimpath -o=${PREFIX}/bin/2fa -ldflags="-s -w" | ||
go-licenses save . --save_path=license-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% set name = "rsc-2fa" %} | ||
{% set version = "1.2.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/rsc/2fa/archive/v{{ version }}.tar.gz | ||
sha256: d8db6b9a714c9146a4b82fd65b54f9bdda3e58380bce393f45e1ef49e4e9bee5 | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('go-nocgo') }} | ||
- go-licenses | ||
|
||
test: | ||
requires: | ||
- m2-grep # [win] | ||
commands: | ||
- 2fa --help 2>&1 | grep -q "2fa -list" | ||
|
||
about: | ||
home: https://github.com/rsc/rsc-2fa | ||
license: BSD-3-Clause | ||
license_file: | ||
- LICENSE | ||
- license-files/ | ||
summary: Two-factor authentication on the command-line | ||
dev_url: https://github.com/rsc/rsc-2fa | ||
|
||
extra: | ||
recipe-maintainers: | ||
- danielnachun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
go mod init github.com/svent/sift || goto :error | ||
go mod tidy -e || goto :error | ||
go mod vendor -e || goto :error | ||
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error | ||
go-licenses save . --save_path=license-files --ignore=github.com/svent/sift || goto :error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o xtrace -o nounset -o pipefail -o errexit | ||
|
||
go mod init github.com/svent/sift | ||
go mod tidy -e | ||
go mod vendor -e | ||
go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" | ||
go-licenses save . --save_path=license-files --ignore=github.com/svent/sift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% set name = "sift" %} | ||
{% set version = "0.9.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/svent/sift/archive/v{{ version }}.tar.gz | ||
sha256: bbbd5c472c36b78896cd7ae673749d3943621a6d5523d47973ed2fc6800ae4c8 | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('go-nocgo') }} | ||
- go-licenses | ||
|
||
test: | ||
commands: | ||
- sift --help | ||
|
||
about: | ||
home: https://github.com/svent/sift | ||
license: GPL-3.0-only | ||
license_file: | ||
- LICENSE | ||
- license-files/ | ||
summary: Fast and powerful open source alternative to grep | ||
dev_url: https://github.com/svent/sift | ||
|
||
extra: | ||
recipe-maintainers: | ||
- danielnachun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error | ||
go-licenses save . --save_path=license-files || goto :error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o xtrace -o nounset -o pipefail -o errexit | ||
|
||
go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" | ||
go-licenses save . --save_path=license-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% set name = "snyk-ls" %} | ||
{% set version = "20240830.154625" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/snyk/snyk-ls/archive/v{{ version }}.tar.gz | ||
sha256: 5caa5ba8009b691e013d461af876845d0c554de67751ec97b39b82ac120f8b44 | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('go-nocgo') }} | ||
- go-licenses | ||
|
||
test: | ||
requires: | ||
- m2-grep # [win] | ||
commands: | ||
- snyk-ls --help 2>&1 | grep -q "Usage of snyk-ls" | ||
|
||
about: | ||
home: https://github.com/snyk/snyk-ls | ||
license: MIT | ||
license_file: | ||
- LICENSE | ||
- license-files/ | ||
summary: Language Server used by IDEs as Snyk Backend for Frontends | ||
dev_url: https://github.com/snyk/snyk-ls | ||
|
||
extra: | ||
recipe-maintainers: | ||
- danielnachun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error | ||
go-licenses save . --save_path=license-files || goto :error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o xtrace -o nounset -o pipefail -o errexit | ||
|
||
go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" | ||
go-licenses save . --save_path=license-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% set name = "solt" %} | ||
{% set version = "1.2.2" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/aegoroff/solt/archive/v{{ version }}.tar.gz | ||
sha256: 1dc785d1b1ee279c522e1297bf93257ba34fb90c168077351decec01afd4f132 | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('go-nocgo') }} | ||
- go-licenses | ||
|
||
test: | ||
commands: | ||
- solt --help | ||
|
||
about: | ||
home: https://github.com/aegoroff/solt | ||
license: MIT | ||
license_file: | ||
- LICENSE.txt | ||
- license-files/ | ||
summary: Small console app written in Go that allows you to easily analyze sources and Microsoft Visual Studio solutions and projects. | ||
dev_url: https://github.com/aegoroff/solt | ||
|
||
extra: | ||
recipe-maintainers: | ||
- danielnachun |