Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-webgpu/webgpu
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dfbca02
Choose a base ref
...
head repository: go-webgpu/webgpu
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f3b574e
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on May 27, 2026

  1. fix: setup tool enterprise hardening (13 issues from code review)

    Security:
    - HTTP timeout 120s (was: no timeout, hangs forever)
    - dst.Close() error checked (was: unchecked, corrupted file on Windows)
    - io.LimitReader 200MB decompression bomb protection (gosec G110)
    - HTTP status code validation (was: no check for 404/500)
    
    Correctness:
    - macOS prints DYLD_LIBRARY_PATH (was: LD_LIBRARY_PATH)
    - wgpu.Init() searches ./lib/ (auto-setup default location)
    - filepath.Abs error handled with fallback
    
    UX:
    - Download progress with Content-Length (MB)
    - README: WGPU_NATIVE_PATH instructions after setup
    
    Code quality:
    - Package doc comment for nativelib
    - errcheck nolint directives with reasons
    - SHA256 TODO for future checksum verification
    
    Tests:
    - Download() with httptest (happy path + 404 + network error)
    - FindLibrary() with env var + lib/ dir search
    kolkov committed May 27, 2026
    Configuration menu
    Copy the full SHA
    f3b574e View commit details
    Browse the repository at this point in the history
Loading