[GH-ISSUE #82] Expose boto3, botocore git commit + data hash information as part of --version output #148

Closed
opened 2026-03-15 11:47:36 +03:00 by kerem · 3 comments
Owner

Originally created by @hwei0 on GitHub (Dec 15, 2025).
Original GitHub issue: https://github.com/awslabs/iam-policy-autopilot/issues/82

During build.rs stage:

  • Get the git commit hash and tag (if present) for each of boto3 and botocore submodules
  • Compute a hash over all the simplified files in boto3-data-simplified and botocore-data-simplified
  • Write to a intermediate file, all this info for each of boto3, botocore

In CLI, upon a call to --version:

  • Read the respective intermediate file, retrieve the commit hash, git tag, and data hash
  • Output to command line the following, in addition to existing version information: {boto3/botocore} version: commit={commit_hash}, tag={tag if tag is present else None}, data_hash={data_hash}
Originally created by @hwei0 on GitHub (Dec 15, 2025). Original GitHub issue: https://github.com/awslabs/iam-policy-autopilot/issues/82 During `build.rs` stage: - Get the git commit hash and tag (if present) for each of `boto3` and `botocore` submodules - Compute a hash over all the simplified files in `boto3-data-simplified` and `botocore-data-simplified` - Write to a intermediate file, all this info for each of `boto3`, `botocore` In CLI, upon a call to `--version`: - Read the respective intermediate file, retrieve the commit hash, git tag, and data hash - Output to command line the following, in addition to existing version information: `{boto3/botocore} version: commit={commit_hash}, tag={tag if tag is present else None}, data_hash={data_hash}`
kerem closed this issue 2026-03-15 11:47:41 +03:00
Author
Owner

@adpaco-aws commented on GitHub (Dec 15, 2025):

Instead of separate version commands for these, I'd recommend printing the information as part of --version (I believe the version command behavior can be overriden in clap).

<!-- gh-comment-id:3657894767 --> @adpaco-aws commented on GitHub (Dec 15, 2025): Instead of separate version commands for these, I'd recommend printing the information as part of `--version` (I believe the version command behavior can be overriden in `clap`).
Author
Owner

@weibenz1 commented on GitHub (Dec 15, 2025):

tag={tag if tag is present else None}

I thought we'd always be monitoring tags rather than latest commit - in this case when would we not have it?

<!-- gh-comment-id:3657915233 --> @weibenz1 commented on GitHub (Dec 15, 2025): > tag={tag if tag is present else None} I thought we'd always be monitoring tags rather than latest commit - in this case when would we not have it?
Author
Owner

@hwei0 commented on GitHub (Dec 15, 2025):

When I pulled and submodule updated a few hours ago, there werent any tags with that commit it seemed

<!-- gh-comment-id:3658093534 --> @hwei0 commented on GitHub (Dec 15, 2025): When I pulled and submodule updated a few hours ago, there werent any tags with that commit it seemed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/iam-policy-autopilot#148
No description provided.