Refactor website build tool to use AWS SDK#84
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the website build tool to use the AWS SDK for Go instead of shell scripts, improving reliability and maintainability for environments without external script dependencies.
Changes:
- Replaced shell script dependencies with native AWS SDK Go client for S3 operations
- Split build functionality into separate
build-indexandbuild-monthcommands - Removed upload functionality and external script dependencies
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go.mod | Added AWS SDK v2 dependencies and their transitive dependencies |
| common/types.go | Fixed naked return to explicitly return srcComp |
| cmd/website/main.go | Refactored from shell-based to SDK-based S3 operations with split build commands |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Replace shell script dependencies with native AWS SDK Go client - Split build functionality into separate commands for index and month pages - Remove upload functionality and external script dependencies - Improve error handling and logging throughout build process
be56196 to
9027017
Compare
metachris
approved these changes
Jan 27, 2026
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.
📝 Summary
⛱ Motivation and Context
We need to update indexes from new merger, which has a simpler environment without scripts in container. It'll be more reliable to use Go SDK directly. This also splits a single index update into a separate root months index build and a per-moth build, so we will only update the current month's index.
📚 References
✅ I have run these commands
make lintmake testgo mod tidy