Skip to content

Commit

Permalink
Upgrade cabal version used in CI server-build
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#9471
GitOrigin-RevId: 006e63b2ad366ad6369e654beacd8768a570922c
  • Loading branch information
daniel-chambers authored and hasura-bot committed Jun 8, 2023
1 parent d4263d2 commit d918e70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions server/COMPILING-ON-MACOS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Compile a graphql-engine executable using brew and ghc-9.2.5
# Compile a graphql-engine executable using brew and ghc-9.4.5

*Note: These instructions use the path `/opt/homebrew` in various places, but this path may be different on your machine depending on where you have installed homebrew (for example, many older homebrew installation were installed to `/usr/local`). You can find out the path of your homebrew installation by running the command `brew --prefix`, and if the output is not `/opt/homebrew`, then you should replace any instances of `/opt/homebrew` in these instructions with the path output by `brew --prefix`.*

1. Install ghc-9.2.5 and cabal-install via [ghcup](https://www.haskell.org/ghcup/).
1. Install ghc-9.4.5 and cabal-install via [ghcup](https://www.haskell.org/ghcup/).

2. Install dependencies:

Expand Down Expand Up @@ -86,11 +86,11 @@ If you are re-running this command to update your Mac, you may need to run
```

Then either copy and paste the entirety of `cabal/dev-sh.project.local` into `cabal.project.local`, or create a symlink by running the command:

```sh
ln -s cabal/dev-sh.project.local cabal.project.local
```

(Copying and pasting allows you to add local projects overrides, which may be needed if you are are planning to make changes to the graphql-engine code, but is not required for simply compiling the code as-is).

6. Write the version number of the graphql-server that you are intending to build to the file `server/CURRENT_VERSION`.
Expand Down
2 changes: 1 addition & 1 deletion server/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This guide explains how to set up the graphql-engine server for development on y

## Pre-requisites

- [GHC](https://www.haskell.org/ghc/) 9.2.5 and [cabal-install](https://cabal.readthedocs.io/en/latest/)
- [GHC](https://www.haskell.org/ghc/) 9.4.5 and [cabal-install](https://cabal.readthedocs.io/en/latest/)
- There are various ways these can be installed, but [ghcup](https://www.haskell.org/ghcup/) is a good choice if you’re not sure.
- There are few system packages required like `libpq-dev`, `libssl-dev`, etc. The best place to get the entire list is from the [Dockerfile](../packaging/graphql-engine-base/ubuntu.dockerfile)
- Additional Haskell tools (expected versions can be found in _VERSIONS.json_):
Expand Down

0 comments on commit d918e70

Please sign in to comment.