+github.com/hadolint/hadolint (#2266)

* +github.com/hadolint/hadolint

* cabal wants git

---------

Co-authored-by: Jacob Heider <jhheider@gmail.com>
This commit is contained in:
Branch Vincent 2023-09-06 16:57:27 -07:00 committed by GitHub
parent 86f15d6e62
commit e670023070
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,31 @@
distributable:
url: https://github.com/hadolint/hadolint/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: hadolint/hadolint
strip: /^v/
build:
dependencies:
haskell.org: ~9.2
haskell.org/cabal: ^3
git-scm.org: ^2 # cabal needs it for this one
env:
ARGS:
- --jobs={{hw.concurrency}}
- --install-method=copy
- --installdir={{prefix}}/bin
script: |
cabal v2-update
cabal v2-install $ARGS
provides:
- bin/hadolint
test:
fixture: |
FROM debian
script: |
hadolint --version | grep {{version}}
echo $(hadolint $FIXTURE || true) | grep DL3006