Skip to content

Commit ca74bce

Browse files
committed
fix(hadolint)
closes #10371 closes #10372
1 parent d6363a3 commit ca74bce

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
distributable:
2-
url: https://github.com/hadolint/hadolint/archive/v{{version}}.tar.gz
2+
url: https://github.com/hadolint/hadolint/archive/{{version.tag}}.tar.gz
33
strip-components: 1
44

55
versions:
66
github: hadolint/hadolint
7-
strip: /^v/
87

98
build:
109
dependencies:
11-
haskell.org: ~9.2
10+
haskell.org: ~9.10 # as of 2.13.1
1211
haskell.org/cabal: ^3
1312
git-scm.org: ^2 # cabal needs it for this one
1413
env:
1514
ARGS:
1615
- --jobs={{hw.concurrency}}
1716
- --install-method=copy
1817
- --installdir={{prefix}}/bin
19-
script: |
20-
cabal v2-update
21-
cabal v2-install $ARGS
18+
script:
19+
- run: unset LDFLAGS
20+
if: darwin
21+
- cabal v2-update
22+
- cabal v2-install $ARGS
23+
- run: install_name_tool add_rpath {{pkgx.prefix}} hadolint
24+
if: darwin
25+
working-directory: ${{prefix}}/bin
2226

2327
provides:
2428
- bin/hadolint
2529

2630
test:
27-
fixture: |
28-
FROM debian
29-
script: |
30-
hadolint --version | grep {{version}}
31-
echo $(hadolint $FIXTURE || true) | grep DL3006
31+
script:
32+
- hadolint --version | grep {{version}}
33+
- run: echo $(hadolint $FIXTURE || true) | grep DL3006
34+
fixture: |
35+
FROM debian

0 commit comments

Comments
 (0)