Skip to content

Commit 4a1dc2c

Browse files
committed
ci: On nightly with anyhow, skip testing -Zminimal-versions
On stable we can support anyhow v1.0.0, but that version assumes that an `Error::backtrace` method is present on nightly. This function has been removed in recent versions of nightly rust. This does not affect non-nightly rust or tests with the anyhow feature disabled.
1 parent fe9364e commit 4a1dc2c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
# if there is a really good reason (like a dependency that requires a newer version).
9999
continue-on-error: false
100100
- name: Test (-Zminimal-versions)
101+
# Skip testing anyhow with -Zminimal-versions on nightly, as anyhow v1.0.0 assumes
102+
# the existence of a backtrace method on nightly. However, this function has been remoed.
103+
if: ${{ !(contains(matrix.features, 'anyhow') && matrix.rust == 'nightly') }}
101104
# NOTE: Use of --all here means features must be defined for the entire workspace
102105
# Since the default package is the only published package, the flag is not strictly necessary
103106
run: |

0 commit comments

Comments
 (0)