bottlerocket-os / bottlerocket-os/twoliter

Make `check-migrations` exit gracefully for kit workspaces

Open Beginner friendly
#359 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
34
Forks
43
Avg merge
11h 13m
Merged PRs (30d)
16

Description

If you run `twoliter make check` in a workspace that only includes kits, [`check-migrations`](https://github.com/bottlerocket-os/twoliter/blob/82c19cd9c60a288aaf194e6c68bb934c3938e7b8/twoliter/embedded/Makefile.toml#L398) will run and fail due to a lack of migrations present in the repository.

This is an artifact of splitting kits from the `bottlerocket-os/bottlerocket` repository. We should let this task exit gracefully in cases where migrations are not needed anymore.

Contributor guide

Open the contributing guide

Research direction

Start in twoliter/embedded/Makefile.toml at the linked check-migrations task, then run twoliter make check in a workspace containing only kits to reproduce the failure. Adjust the task so migrations are treated as unnecessary when none are present, and verify that the kit-only check completes successfully without changing migration behavior for repositories that have migrations.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.