Skip to content

Conversation

@ilyaluk
Copy link
Contributor

@ilyaluk ilyaluk commented Jan 21, 2026

📝 Summary

  • 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

⛱ 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 lint
  • make test
  • go mod tidy

@ilyaluk ilyaluk requested review from Copilot and metachris January 21, 2026 17:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-index and build-month commands
  • 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
@ilyaluk ilyaluk force-pushed the ilya/refactor-website-aws-sdk branch from be56196 to 9027017 Compare January 21, 2026 17:23
@metachris metachris merged commit 3256f20 into main Jan 27, 2026
2 checks passed
@metachris metachris deleted the ilya/refactor-website-aws-sdk branch January 27, 2026 15:19
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.

2 participants