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

Add artifact_name to print_relnotes #541

Merged
merged 1 commit into from
Feb 15, 2022
Merged

Add artifact_name to print_relnotes #541

merged 1 commit into from
Feb 15, 2022

Conversation

aiuto
Copy link
Collaborator

@aiuto aiuto commented Feb 14, 2022

This allows you to use artifact names that do not follow the standard convention.

Fixes #435

This allows you to use artifact names that do not follow the standard convention.

Fixes bazelbuild#435
@aiuto aiuto requested a review from nacl as a code owner February 14, 2022 03:42
@aiuto
Copy link
Collaborator Author

aiuto commented Feb 14, 2022

@guw

@aiuto aiuto merged commit a6037f0 into bazelbuild:main Feb 15, 2022
@aiuto aiuto deleted the i435 branch February 15, 2022 17:31
@guw
Copy link
Contributor

guw commented Mar 12, 2022

@aiuto just got to testing this with main branch but it doesn't seem to work. I still don't get the proper download url generated into http_archive

@aiuto
Copy link
Collaborator Author

aiuto commented Mar 12, 2022 via email

@guw
Copy link
Contributor

guw commented Mar 13, 2022

@aiuto BUILD file is here: https://github.com/salesforce/bazel-jdt-java-toolchain/blob/07571cc819ecd76fff2908aaad2fb9a07034cef7/dist/BUILD#L30

My goal is to build rules_jdt.tar.gz and publish this.
bazel build //dist:rules_jdt produces bazel-bin/dist/rules_jdt.tar.gz

print_rel_notes(
    name = "relnotes",
     ...
    artifact_name = "rules_jdt.tar.gz",
    version = "latest",
)

When I run cat bazel-bin/dist/relnotes.txt is still uses https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/latest/bazel-jdt-java-toolchain-latest.tar.gz as the tar.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "bazel_jdt_java_toolchain",
    urls = [
        "https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/latest/bazel-jdt-java-toolchain-latest.tar.gz",
    ],
    sha256 = "38d38804d88123a8661e1421fd9962e47891ced795c2350bd9ae7a2f3624c7d4",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()

However, it looks like the sha256 is actually correct, i.e

shasum -a 256 bazel-bin/dist/rules_jdt.tar.gz
38d38804d88123a8661e1421fd9962e47891ced795c2350bd9ae7a2f3624c7d4  bazel-bin/dist/rules_jdt.tar.gz

Could this be a display issue of the release notes template file?

@guw
Copy link
Contributor

guw commented Mar 13, 2022

@aiuto #561

@aiuto
Copy link
Collaborator Author

aiuto commented Mar 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

print_rel_notes should support customizing tarball_name
3 participants