From 8e1e2af1de5f90fe8ecc39a5c63666b2b51c8e4b Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 23 Jun 2023 00:07:19 +0300 Subject: [PATCH] github.com/maxbrunsfeld/counterfeiter (#2237) * new file: projects/github.com/maxbrunsfeld/counterfeiter/package.yml * add runtime deps & env --- .../maxbrunsfeld/counterfeiter/package.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/github.com/maxbrunsfeld/counterfeiter/package.yml diff --git a/projects/github.com/maxbrunsfeld/counterfeiter/package.yml b/projects/github.com/maxbrunsfeld/counterfeiter/package.yml new file mode 100644 index 00000000..8837d77a --- /dev/null +++ b/projects/github.com/maxbrunsfeld/counterfeiter/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://github.com/maxbrunsfeld/counterfeiter/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: maxbrunsfeld/counterfeiter + +runtime: + env: + GOROOT: "{{deps.go.dev.prefix}}" + +dependencies: + go.dev: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + go.dev: '*' + script: go build $ARGS + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/counterfeiter + +provides: + - bin/counterfeiter + +test: + dependencies: + go.dev: '*' + env: + GOROOT: "{{deps.go.dev.prefix}}" + script: | + counterfeiter -p os 2>&1 + test -e osshim \ No newline at end of file