lambdaconf-2018-workshop icon indicating copy to clipboard operation
lambdaconf-2018-workshop copied to clipboard

Update deps causing failed build + outdated telegram-bot-api

Open artimath opened this issue 6 months ago • 0 comments

In the process of solving https://github.com/fizruk/telegram-bot-simple/issues/188, I fixed a few things to get it to build again and figured I'd PR.

The original extra-deps in stack.yaml:

extra-deps:
  - git: https://github.com/fizruk/telegram-bot-simple.git
    commit: v0.2

led to:


> stack build

Error: [S-112]
       Cannot complete repo information for a non SHA1 commit due to non-reproducibility:
       Git repo at https://github.com/fizruk/telegram-bot-simple.git, commit v0.2.

After some googling, saw this https://github.com/commercialhaskell/stack/issues/4882, which hinted that the issue was with not having a full hash for the commit.

I updated to:

extra-deps:
  - git: https://github.com/fizruk/telegram-bot-simple.git
    commit: 'f7acd0a9feb7fd9beb0ec621a2fe271f6721d51c'
    subdirs:
      - telegram-bot-simple

Which worked, but then led to this:

In the dependencies for telegram-bot-simple-0.14.1:
         * telegram-bot-api must match >=7.3.1, but telegram-bot-api-6.7.1 is in the Stack configuration
           (latest matching version is 7.4).
       The above is/are needed due to demo-bot-0.1.0 -> telegram-bot-simple-0.14.1

Also GHC 8.4.3 didn't even have a build for Mac 14.5.

Added new resolver:

resolver: nightly-2024-08-25

Everything works, also addresses the version bump needed to fix https://github.com/fizruk/telegram-bot-simple/issues/188

artimath avatar Aug 26 '24 06:08 artimath