1
我已经安装了堆栈可执行包用我自己的stack.yaml
文件,该文件包含以下内容:如何更新已安装的堆栈包?
resolver: lts-8.2
packages:
- location:
git: https://github.com/chrissound/ArchPackageCompareStats.git
commit: c34b7dc5f08df92c6b6fb0cab0ac1d5b6b7568d4
- location:
git: https://github.com/chrissound/ArchLinuxPkgStatsScraper.git
commit: HEAD
我使用的命令是之一:
stack install --local-bin-path /server/ ArchPackageCompareStats
stack install -v ArchPackageCompareStats
一旦我已经更新在提交哈希stack.yaml
,我该如何更新这个软件包?
只需运行与以前一样的'stack install'命令?! – sjakobi
顺便说一句[stack docs](https://docs.haskellstack.org/en/stable/yaml_configuration/#complex-package-locations-location)说:“强烈建议你只使用SHA1值作为Git或Mercurial提交其他值可能有效,但它们没有官方支持,并可能导致意外的行为(即堆栈不会自动更新到新版本)。“ – sjakobi