Closed ivanperez-keera closed 3 hours ago
Change Manager: Confirmed version is ready to be released.
Technical Lead: Confirmed that the issue should be addressed.
Technical Lead: Issue scheduled for Copilot 4.1.
Fix assigned to: @ivanperez-keera.
Implementor: Solution implemented, review requested.
Change Manager: Verified that:
Solution is implemented:
[X] The code proposed compiles and passes all tests. Details: Build log: https://app.travis-ci.com/github/Copilot-Language/copilot/builds/273072098
[X] The solution proposed addresses the necessary modification to cabal packages. The following docker image installs copilot enforcing the new version via compiler constraints. It prints the message "Success" at the end if all completes correctly, and shows an error message otherwise.
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install --yes libz-dev pkg-config RUN apt-get install --yes git
RUN apt-get install --yes wget RUN mkdir -p $HOME/.ghcup/bin RUN wget https://downloads.haskell.org/~ghcup/0.1.17.7/x86_64-linux-ghcup-0.1.17.7 -O $HOME/.ghcup/bin/ghcup
RUN chmod a+x $HOME/.ghcup/bin/ghcup ENV PATH=$PATH:/root/.ghcup/bin/ ENV PATH=$PATH:/root/.cabal/bin/ RUN apt-get install --yes curl RUN apt-get install --yes gcc g++ make libgmp3-dev RUN ghcup install ghc 9.8.2 RUN ghcup install cabal 3.4 RUN ghcup set ghc 9.8.2 RUN cabal update
SHELL ["/bin/bash", "-c"] CMD git clone $REPO \ && cd $NAME \ && git checkout $COMMIT \ && cabal install --lib copilot**/ \ --constraint="copilot==4.1" \ --constraint="copilot-c99==4.1" \ --constraint="copilot-core==4.1" \ --constraint="copilot-prettyprinter==4.1" \ --constraint="copilot-interpreter==4.1" \ --constraint="copilot-language==4.1" \ --constraint="copilot-libraries==4.1" \ --constraint="copilot-theorem==4.1" \ && echo Success
Command (substitute variables based on new path after merge):
$ docker run -e "REPO=https://github.com/ivanperez-keera/copilot" -e "NAME=copilot" -e "COMMIT=22aec9c96c9a9a0fadc216daa8d88df760397dd4" -it copilot-verify-561
Change Manager: Implementation ready to be merged.
Description
Version 4.1 of Copilot should be closed and published on Hackage.
Type
Additional context
None.
Requester
Method to check presence of bug
Not applicable (not a bug).
Expected result
Desired result
Proposed solution
Further notes
None.