Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle case of empty GOROOT #1798

Merged
merged 1 commit into from
Apr 21, 2024

Commits on Apr 21, 2024

  1. Handle case of empty GOROOT

    In some situations, such as when using the go-swag Nix package, runtime.GOROOT() will be empty, and RangeFiles will skip all source paths since technically, all paths are prefixed with the empty string.
    
    See also NixOS/nixpkgs#224701
    
    May resolve some cases of swaggo#1622.
    evan-goode committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    4aab213 View commit details
    Browse the repository at this point in the history