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

Closed
opened 2026-03-07 19:41:12 +03:00 by kerem · 0 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-07 19:41:12 +03:00
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#46
No description provided.