korbit-ai[bot] commented on code in PR #32866: URL: https://github.com/apache/superset/pull/32866#discussion_r2014635145
########## RELEASING/make_tarball.sh: ########## @@ -32,7 +32,7 @@ else SUPERSET_VERSION="${1}" SUPERSET_RC="${2}" SUPERSET_PGP_FULLNAME="${3}" - SUPERSET_RELEASE_RC_TARBALL="apache-superset-${SUPERSET_VERSION_RC}-source.tar.gz" + SUPERSET_RELEASE_RC_TARBALL="apache_superset-${SUPERSET_VERSION_RC}-source.tar.gz" Review Comment: ### Variable used before definition <sub></sub> <details> <summary>Tell me more</summary> ###### What is the issue? The variable SUPERSET_VERSION_RC is used before it's defined. The script uses this variable in the tarball name before it sets its value a few lines later. ###### Why this matters This will result in an empty value being used in the tarball name, causing incorrect file naming and potential failures in subsequent operations that depend on this filename. ###### Suggested change ∙ *Feature Preview* Move the tarball name definition after SUPERSET_VERSION_RC is set: ```bash SUPERSET_VERSION_RC="${SUPERSET_VERSION}rc${SUPERSET_RC}" SUPERSET_RELEASE_RC_TARBALL="apache_superset-${SUPERSET_VERSION_RC}-source.tar.gz" ``` ###### Provide feedback to improve future suggestions [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/8a5c9d38-632f-468c-996e-7d4750f1e405/upvote) [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/8a5c9d38-632f-468c-996e-7d4750f1e405?what_not_true=true) [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/8a5c9d38-632f-468c-996e-7d4750f1e405?what_out_of_scope=true) [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/8a5c9d38-632f-468c-996e-7d4750f1e405?what_not_in_standard=true) [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/8a5c9d38-632f-468c-996e-7d4750f1e405) </details> <sub> 💬 Looking for more details? Reply to this comment to chat with Korbit. </sub> <!--- korbi internal id:dc3f9e9f-71fc-4c16-8ec1-698f4d584c08 --> [](dc3f9e9f-71fc-4c16-8ec1-698f4d584c08) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org