you'll want to clear your module cache, and then watch go get / go mod download with -v (for downloading) and/or -x (see if it invoked git commands).
- sean On Sat, Dec 14, 2024, 09:02 David Karr <davidmichaelk...@gmail.com> wrote: > I'm currently using Go 1.23.2. We have a few applications that reference > packages on github. We're now in a situation where we have to ensure that > packages are obtained from our internal github proxy, not directly from > github. > > So, I set GOPROXY to point to the repository we set up for this, and I do > see that it is populated with a bunch of Go packages. I run a build and it > succeeds. > > However, I don't see any way to prove that it's actually getting packages > through the GOPROXY url, as opposed to directly from github. I've tried > several command-line options that are sort of verbosey, but nothing > provides this information. I even tried adding "-a" to "go build" to force > it to rebuild packages that are up to date, and I've tried setting GOPROXY > to an invalid url, but it doesn't fail, and it doesn't give any indication > of whether it's using the proxy or not. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/golang-nuts/8700b51f-bfcd-4ea2-8469-6d0e3724e94fn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/8700b51f-bfcd-4ea2-8469-6d0e3724e94fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAGabyPqdDqUhoqvwibj-V4gaW2ezbg2D6rqojQ83mvp%3D5UOH3Q%40mail.gmail.com.