Skip to content

Commit b6ab4d8

Browse files
committedOct 30, 2024··
feat(#85): use UNKNOWN_REVISION when are unable to determine git revision when building bot
1 parent 8e9ca05 commit b6ab4d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎geniusyield-server-lib/CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Revision history for geniusyield-server-lib
22

3-
## 0.11.1 -- 2024-10-28
3+
## 0.11.1 -- 2024-10-30
44

55
* Adds support of [`prices`](https://openapi.taptools.io/#tag/Market-Tokens/paths/~1token~1prices/post) TapTools endpoint.
6+
* In case project is being built from an environment which lacks access to corresponding `.git` directory, "UNKNOWN_REVISION" is used for `revision` field when querying for settings of the server.
67

78
## 0.11.0 -- 2024-08-30
89

‎geniusyield-server-lib/src/GeniusYield/Server/Constants.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ import RIO
99

1010
-- | The git hash of the current commit.
1111
gitHash String
12-
gitHash = $$tGitInfoCwd & giHash
12+
gitHash = either (const "UNKNOWN_REVISION") giHash $$tGitInfoCwdTry

0 commit comments

Comments
 (0)
Please sign in to comment.