Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go/internal/load: prevent set ImportPathError when the err is alr…
…eady *module.InvalidPathError 1. The call of setError is unnecessary bacause setError do nothing when p.Error is not nil. 2. The call of ImportErrorf may panic in this situation (double quotes appear in the import path). Fixes golang#49137
- Loading branch information