Commit 8f29d2b
committed
Merge branch 'develop-xlsx-1.2.0' into develop. Close #313.
**Description**
In order to keep Ogma effectively working in the current Haskell
ecosystem, as well as new versions of GHC, we need to extend the
versions of dependencies that Ogma can be installed with. `xlsx` has
seen release 1.2.0, but constraints in the cabal files prevent
installation with that version. This is preventing new versions of Ogma
from being added to the latest versions of Stackage.
**Type**
- Management: update versions of dependencies.
**Additional context**
None.
**Requester**
- Ivan Perez.
**Method to check presence of bug**
Not applicable (not a bug).
**Expected result**
Ogma can be installed with the most recent version of `xlsx` on hackage
that does not require a change to the Haskell code.
The following Dockerfile installs Ogma forcing the version of `xlsx` to
be greater than or equal to 1.2, after which it prints the message
"Success":
```
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
SHELL ["/bin/bash", "-c"]
RUN apt-get install --yes ghc cabal-install libz-dev pkg-config g++
WORKDIR /root/
ENV PATH=/root/.cabal-sandbox/bin:$PATH
RUN cabal update
RUN cabal v1-sandbox init
RUN cabal v1-install alex happy
RUN cabal v1-install BNFC
RUN cabal v1-install copilot-4.6
RUN apt-get install --yes git
RUN apt-get install --yes libbz2-dev libexpat1-dev
SHELL ["/bin/bash", "-c"]
CMD git clone $REPO \
&& pushd $NAME \
&& git checkout $COMMIT \
&& popd \
&& cabal v1-install --force-reinstalls --constraint="aeson>=2.0.3.0" --constraint="xlsx>=1.2" $NAME/ogma-**/ \
&& echo "Success"
```
Command (substitute variables based on new path after merge):
```sh
$ docker run -e "REPO=https://github.com/NASA/ogma" -e "NAME=ogma" -e "COMMIT=<HASH>" -it ogma-verify-313
```
**Solution implemented**
Modify the version bound on `ogma-language-xlsx` to include allow
installation with versions in the `1.2` series.
**Further notes**
None.2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments