Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the index-state for hackage only #3865

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ runs:

- name: Retrieving `cabal.project` Hackage timestamp
run: |
# Form: index-state: 2021-11-29T08:11:08Z
INDEX_STATE_ENTRY=$(grep index-state cabal.project)
# Form: index-state: repository 2021-11-29T08:11:08Z
INDEX_STATE_ENTRY=$(grep "index-state:" cabal.project)
# Form: 2021-11-29T08-11-08Z
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f2 | tr ':' '-')
INDEX_STATE1=$(echo "$INDEX_STATE_ENTRY" | cut -d' ' -f3 | tr ':' '-')
echo "INDEX_STATE=$INDEX_STATE1" >> $GITHUB_ENV
shell: bash

Expand Down
7 changes: 6 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ packages:
./plugins/hls-refactor-plugin
./plugins/hls-overloaded-record-dot-plugin

index-state: 2023-10-06T06:12:29Z
-- head.hackage does not support index-state
-- (https://gitlab.haskell.org/ghc/head.hackage/-/issues/53)
-- Setting the index-state for head.hackage can result in
-- issues, e.g. https://github.com/haskell/haskell-language-server/issues/3861
-- so we only set it for hackage.
index-state: hackage.haskell.org 2023-11-14T00:00:00Z

tests: True
test-show-details: direct
Expand Down
2 changes: 1 addition & 1 deletion ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ library
enummapset,
filepath,
fingertree,
focus,
focus >= 1.0.3.2,
ghc-trace-events,
Glob,
haddock-library >= 1.8 && < 1.12,
Expand Down
Loading