Skip to content

Commit

Permalink
Merge pull request conda-forge#28160 from danielnachun/go-recipes9
Browse files Browse the repository at this point in the history
add rsc-2fa, sift, snyk-ls, solt
  • Loading branch information
xhochy authored Nov 15, 2024
2 parents 7c6638a + c87c4db commit c96a0d9
Show file tree
Hide file tree
Showing 12 changed files with 208 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/rsc-2fa/bld.bat
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
7 changes: 7 additions & 0 deletions recipes/rsc-2fa/build.sh
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
37 changes: 37 additions & 0 deletions recipes/rsc-2fa/meta.yaml
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
11 changes: 11 additions & 0 deletions recipes/sift/bld.bat
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
9 changes: 9 additions & 0 deletions recipes/sift/build.sh
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
35 changes: 35 additions & 0 deletions recipes/sift/meta.yaml
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
8 changes: 8 additions & 0 deletions recipes/snyk-ls/bld.bat
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
6 changes: 6 additions & 0 deletions recipes/snyk-ls/build.sh
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
37 changes: 37 additions & 0 deletions recipes/snyk-ls/meta.yaml
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
8 changes: 8 additions & 0 deletions recipes/solt/bld.bat
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
6 changes: 6 additions & 0 deletions recipes/solt/build.sh
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
35 changes: 35 additions & 0 deletions recipes/solt/meta.yaml
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

0 comments on commit c96a0d9

Please sign in to comment.