Skip to content

fix: resolve Go test failures in 2019 and 2024#9

Merged
markkovari merged 2 commits intomainfrom
chore/fix-go-tests
Oct 29, 2025
Merged

fix: resolve Go test failures in 2019 and 2024#9
markkovari merged 2 commits intomainfrom
chore/fix-go-tests

Conversation

@markkovari
Copy link
Owner

Summary

  • Fixed unused errors import in 2024/golang/cmd/04.go
  • Added filepath parameter to readCommands() function in 2019/go/cmd/15 to match test expectations

Test Results

All Go tests now pass:

  • 2024/golang: 13 tests passed
  • 2019/go: 1 test passed

Changes

  • 2024/golang/cmd/04.go:5 - Removed unused import
  • 2019/go/cmd/15/main.go:9 - Updated function signature to accept filepath parameter

🤖 Generated with Claude Code

markkovari and others added 2 commits October 29, 2025 19:23
- Remove unused 'errors' import in 2024/golang/cmd/04.go
- Add filepath parameter to readCommands() function in 2019/go/cmd/15
  to match test expectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove unstable feature flag #![feature(drain_filter)]
- Replace drain_filter with iter_mut + retain pattern
- All Rust tests in 2021 now compile and pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@markkovari markkovari merged commit e9e2d96 into main Oct 29, 2025
36 checks passed
@markkovari markkovari deleted the chore/fix-go-tests branch October 29, 2025 19:30
markkovari added a commit that referenced this pull request Oct 29, 2025
* fix: resolve Go test failures in 2019 and 2024

- Remove unused 'errors' import in 2024/golang/cmd/04.go
- Add filepath parameter to readCommands() function in 2019/go/cmd/15
  to match test expectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: replace deprecated drain_filter with stable alternative in 2021/_4

- Remove unstable feature flag #![feature(drain_filter)]
- Replace drain_filter with iter_mut + retain pattern
- All Rust tests in 2021 now compile and pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: markkovari <kovarimarkofficial@gmail.com>
markkovari added a commit that referenced this pull request Oct 29, 2025
* fix: resolve Go test failures in 2019 and 2024 (#9)

* fix: resolve Go test failures in 2019 and 2024

- Remove unused 'errors' import in 2024/golang/cmd/04.go
- Add filepath parameter to readCommands() function in 2019/go/cmd/15
  to match test expectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: replace deprecated drain_filter with stable alternative in 2021/_4

- Remove unstable feature flag #![feature(drain_filter)]
- Replace drain_filter with iter_mut + retain pattern
- All Rust tests in 2021 now compile and pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: markkovari <kovarimarkofficial@gmail.com>

* docs: add README rocket

* fix: prevent empty matrix values when no projects change

When only non-code files (like README.md) change, the change detection
was outputting [""] instead of []. This caused jobs to run with empty
matrix values, leading to failures:
- cargo test failing with "could not find Cargo.toml"
- dotnet restore failing with "no project or solution file"

Now properly outputs [] when no projects are detected, preventing
jobs from running with empty matrix values.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Signed-off-by: markkovari <kovarimarkofficial@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.

1 participant