Repository navigation
Fix Julia 1.6 CI: replace 1.7-only string line continuation in tests - #1
Merged
Merged
Conversation
Backslash-newline inside a string literal is Julia 1.7+ syntax, so the Julia 1.6 job failed to parse test/runtests.jl. Build the long strings with * instead; the resulting strings are byte-identical. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failing job
CI / Julia 1.6 - ubuntu-latestonmain(run 31286776590). The1andnightlyjobs pass.Root cause
test/runtests.jlbuilds three long strings with a backslash-newline line continuation inside the string literal. That syntax arrived in Julia 1.7.Project.tomldeclaresjulia = "1.6", and the matrix tests 1.6, so the 1.6 job cannot parse the test file.Fix
Build the same strings with
*concatenation, which every supported Julia version parses. No test, assertion or source code changes. The compat bound stays at 1.6.Verification
CONTRACTandAPIDOCdefinitions: the strings are byte-identical (thehardstring follows the same pattern).Pkg.test()locally on Julia 1.13: 49/49 pass.