Skip to content

feat: support install package on window git-bash - #485

Merged
LinuxSuRen merged 2 commits into
masterfrom
feat/git-bash-win
Oct 29, 2026
Merged

LinuxSuRen merged 2 commits into
masterfrom
feat/git-bash-win

Conversation

@LinuxSuRen

Copy link
Copy Markdown
Owner

No description provided.

Rebased onto the current master:
- upgrade go-fake-runtime to v0.0.5 (DefaultExecer is constructed via NewDefaultExecer,
  FakeExecer must be used as a pointer in the tests)
- drop the obsolete workflow Go version bumps and the accidentally committed test.log
@codacy-production

codacy-production Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 75.00% diff coverage · -0.02% coverage variation

Metric Results
Coverage variation ✅ -0.02% coverage variation
Diff coverage ✅ 75.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (51c1ebb) 4832 2896 59.93%
Head commit (6b8bb45) 4835 (+3) 2897 (+1) 59.92% (-0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#485) 12 9 75.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.38%. Comparing base (51c1ebb) to head (6b8bb45).

Files with missing lines Patch % Lines
cmd/install.go 25.00% 2 Missing and 1 partial ⚠️
pkg/installer/check.go 0.00% 1 Missing ⚠️
pkg/net/http.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #485      +/-   ##
==========================================
+ Coverage   55.29%   55.38%   +0.09%     
==========================================
  Files          75       75              
  Lines        4612     4615       +3     
==========================================
+ Hits         2550     2556       +6     
+ Misses       1895     1890       -5     
- Partials      167      169       +2     
Flag Coverage Δ
unittests 55.38% <58.33%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LinuxSuRen LinuxSuRen left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Rebased the branch onto the current master (it was based on a pre-#492 history, and master uses squash merges, so the old commits could not merge cleanly).

What the rebuild did:

  • Kept the functional changes: go-fake-runtime → v0.0.5 (NewDefaultExecer, pointer FakeExecer in tests) and the git-bash /usr/bin install dir on Windows
  • Dropped the obsolete workflow Go-version bumps (master is on Go 1.26 now) and the accidentally committed pkg/net/test.log
  • Fixed a gosec G301 drift (0755 → 0750) in pkg/net

CI is fully green. Merging is left to the maintainer.

@LinuxSuRen

Copy link
Copy Markdown
Owner Author

Rebased onto the current master (the branch predated the #492/#493/#494 squash merges, so it could not merge cleanly).

  • Kept: go-fake-runtime → v0.0.5 (NewDefaultExecer, pointer FakeExecer in tests), git-bash /usr/bin install dir on Windows
  • Dropped: obsolete workflow Go-version bumps, accidentally committed pkg/net/test.log
  • Extra: gosec G301 fix (0755 → 0750) in pkg/net

All CI checks are green. Merge left to the maintainer.

@LinuxSuRen
LinuxSuRen merged commit 6d791d7 into master Oct 29, 2026
14 checks passed
@LinuxSuRen
LinuxSuRen deleted the feat/git-bash-win branch October 29, 2026 04:57
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