mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-21 05:43:51 -07:00
Work around snap's old cabal + new snapcraft proxy.
This commit is contained in:
parent
df0a0d41fa
commit
359b1467a2
2 changed files with 22 additions and 1 deletions
|
@ -37,9 +37,16 @@ parts:
|
|||
source: ./
|
||||
build-packages:
|
||||
- cabal-install
|
||||
- squid3
|
||||
build: |
|
||||
# See comments in .snapsquid.conf
|
||||
[ "$http_proxy" ] && {
|
||||
squid3 -f .snapsquid.conf
|
||||
export http_proxy="http://localhost:8888"
|
||||
sleep 3
|
||||
}
|
||||
cabal sandbox init
|
||||
cabal update
|
||||
cabal update || cat /var/log/squid/*
|
||||
cabal install -j
|
||||
install: |
|
||||
install -d $SNAPCRAFT_PART_INSTALL/usr/bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue