xmonad-contrib/stack-master.yaml
Tomas Janousek 17ef2b95db ci: Workaround for stack/pantry caching of github archives
Turns out `commit: master` doesn't really mean latest master, because
it's cached. It sometimes works, because when the GHA cache comes from
a job that depended on xmonad-0.15, then the master archive isn't cached
and is fetched. When the cache comes from a job that previously fetched
master, it's not fetched again.

The least ugly way to fix it I found is to use the `[<refname>]@{<date>}`
git revision format, and substitute current date/time before invoking
stack. To make stack-master.yaml valid without the substitution, we use
`master@{today}` which is a valid git revision that GitHub understands.
2021-05-24 17:49:03 +01:00

12 lines
180 B
YAML

# This stack.yaml is used to build xmonad-contrib with master version
# of xmonad
resolver: lts-15.3
packages:
- ./
extra-deps:
- github: xmonad/xmonad
commit: master@{today}