Skip to content

hotfix for issue #316#324

Merged
tw93 merged 4 commits intotw93:windowsfrom
bhadraagada:windows
Jan 16, 2026
Merged

hotfix for issue #316#324
tw93 merged 4 commits intotw93:windowsfrom
bhadraagada:windows

Conversation

@bhadraagada
Copy link
Contributor

Summary - Issue #316 Fix
Problem: mo analyze and mo status commands failed with "missing go.sum entry" error when the pre-built exe files weren't present.
Root Cause: The install.ps1 script was copying go.mod but not go.sum, so when Go tried to build the tools, it couldn't resolve dependencies.
Fix: Added go.sum to the list in install.ps1.

Addresses tw93's PR tw93#305 feedback:
- Add 'mo' short alias (mo.cmd) alongside mole.cmd
- Use 'mo' in all help text and documentation
- Document lowercase flag style (--dry-run, --help, etc.)
- Simplify optimize: repairs run automatically, no extra flags
- Fix RepairsApplied counter bug in optimize.ps1
- Update README with standardized examples
Fixes tw93#316 - The go.sum file was missing from the install file list,
causing 'missing go.sum entry' errors when trying to build the Go
tools (analyze, status) on systems without pre-built binaries.
Copilot AI review requested due to automatic review settings January 16, 2026 07:22
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 fixes issue #316 where mo analyze and mo status commands failed with "missing go.sum entry" errors when pre-built executables weren't present. The fix adds go.sum to the list of files copied by install.ps1, allowing Go to properly resolve dependencies when building the tools from source.

Changes:

  • Fixed the installation script to copy go.sum alongside go.mod
  • Updated command-line interface to use --flag format instead of -Flag for consistency
  • Added short alias support (-h, -v, etc.) for common flags
  • Created mo as a short alias for the mole command

Reviewed changes

Copilot reviewed 3 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
install.ps1 Added go.sum to the files copied during installation (fixes #316) and created mo.cmd alias
mole.ps1 Updated flag parsing to support both single and double-dash formats, added short flag aliases
bin/analyze.ps1 Updated help text to use mo command name and --help flag format
bin/clean.ps1 Updated help text and added aliases for flags
bin/optimize.ps1 Simplified by removing separate repair flags and integrating repairs into main optimization flow
bin/purge.ps1 Updated help text and added flag aliases
bin/status.ps1 Updated help text to use new command format
bin/uninstall.ps1 Updated help text and added flag aliases
README.md Updated all documentation examples to use mo command and new flag formats

Copy link
Owner

@tw93 tw93 left a comment

Choose a reason for hiding this comment

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

LGTM

@tw93 tw93 merged commit 0e9e900 into tw93:windows Jan 16, 2026
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.

3 participants