CI: Install adjusted antlr4-tools with better sonatype url#273
Draft
CI: Install adjusted antlr4-tools with better sonatype url#273
antlr4-tools with better sonatype url#273Conversation
Member
Author
|
Hi @rdelaage, thanks for your suggestion at antlr/antlr4-tools#22 (comment). We've implemented it per antlr/antlr4-tools#24, but downstream validations fail our CI here. Navigating there is likely impossible because of ongoing GitHub woes, so let me replicate the traceback here: Traceback (most recent call last):
File "/path/to/cratedb_sqlparse_py/.venv/bin/antlr4", line 10, in <module>
sys.exit(tool())
~~~~^^
File "/path/to/cratedb_sqlparse_py/.venv/lib/python3.14/site-packages/antlr4_tool_runner.py", line 143, in tool
run_cli('org.antlr.v4.Tool')
~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/path/to/cratedb_sqlparse_py/.venv/lib/python3.14/site-packages/antlr4_tool_runner.py", line 134, in run_cli
args, version = process_args()
~~~~~~~~~~~~^^
File "/path/to/cratedb_sqlparse_py/.venv/lib/python3.14/site-packages/antlr4_tool_runner.py", line 128, in process_args
args.version or os.environ.get("ANTLR4_TOOLS_ANTLR_VERSION") or latest_version()
~~~~~~~~~~~~~~^^
File "/path/to/cratedb_sqlparse_py/.venv/lib/python3.14/site-packages/antlr4_tool_runner.py", line 33, in latest_version
latest = antlr_info['latestVersion']
~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'latestVersion'If you compare the output, for example using httpie, you can see a difference between Sonatype and Maven Central. With the former, and your proposed URL syntax, the output is missing a http 'https://central.sonatype.com/solrsearch/select?q=a:antlr4-master+AND+g:org.antlr'http 'https://search.maven.org/solrsearch/select?q=a:antlr4-master+AND+g:org.antlr'Is it a different kind of bug / inconveniency we are discovering here? With kind regards, |
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.
About
The intention is to prevent being flagged or rejected as a bot by
central.sonatype.com.References
antlr4-toolsthat usessearch.maven.org#247