• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Teamwork / utils / 33893116752
77%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2026 04:05PM UTC
Jobs 1
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2026 04:04PM UTC coverage: 76.868% (+0.2%) from 76.703%
33893116752

push

github

web-flow
goutil: handle Windows paths in ResolvePackage and ResolveImport (#91)

* goutil: handle Windows paths in ResolvePackage and ResolveImport

Two path helpers assumed Unix conventions, so both misbehave on a Windows
checkout.

ResolvePackage switched on path[0] and only treated a leading '/' as a
directory. A Windows absolute path starts with a drive letter, so it fell
through to build.Import and was resolved as though it were an import path,
which always fails.

ResolveImport's same-package fallback derived the current package name with
path.Base(path.Dir(file)). The path package is slash-only, so for
C:\src\pkg\file.go it evaluates to "." and the fallback never fires,
leaving same-package type references unresolvable.

Both are fixed with helpers that accept either convention, so they are
unit-testable on any host rather than only on Windows. No behaviour change
for Unix paths.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* httputilx: serve TestFetch's fixtures locally instead of httpbin.org

TestFetch drove its status-code cases off httpbin.org, which returns 503
often enough to fail unrelated builds — it failed on this branch while
passing on a re-run of the same commit.

An httptest server now serves the 400/500/418 responses, and the
connection-failure case dials a closed local port rather than relying on a
domain never resolving, which a wildcard DNS resolver can defeat.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

14 of 16 new or added lines in 1 file covered. (87.5%)

1296 of 1686 relevant lines covered (76.87%)

35.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
64.57
2.61% goutil/goutil.go
Jobs
ID Job ID Ran Files Coverage
1 33893116752.1 04 Sep 2026 04:05PM UTC 27
76.87
GitHub Action Run
Source Files on build 33893116752
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 10abe4f7 on github
  • Prev Build on refs/tags/v2.3.2 (#20778625201)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc