github.com/glimps-jbo/go-licenses@v0.0.0-20230908151000-e06d3c113277/internal/third_party/pkgsite/README.md (about) 1 # go/pkgsite/source 2 3 Vendored from <https://go.googlesource.com/pkgsite/+/beceacdece62d95d6dc41a9b5f09da7b2a021020/internal/source>, 4 because the source package is internal, and there's no plan to move it out anytime soon: <https://github.com/golang/go/issues/40477#issuecomment-868532845>. 5 6 The entire source folder and be downloaded via: 7 8 ```bash 9 curl -LO https://go.googlesource.com/pkgsite/+archive/beceacdece62d95d6dc41a9b5f09da7b2a021020/internal.tar.gz 10 ``` 11 12 Local modifications: 13 14 - Update import paths. 15 - Removed unused functions from pkgsite/internal/stdlib, pkgsite/internal/derrors, 16 pkgsite/internal/version to avoid other dependencies. 17 - For pkgsite/internal/source, switched to use go log package, because glog conflicts with a test 18 dependency that also defines the "v" flag. 19 - Add a SetCommit method to type ModuleInfo in ./source/source_patch.go, more rationale explained in the method's comments.