Getting error on go env -w GOPRIVATE=github.com/TecXLab/*

Hi,
I want to use private registry in my go code. but I am getting error while firing go get cmd.
when I firing the cmd go env -w GOPRIVATE=github.com/TecXLab/* it give following error
zsh: no matches found: GOPRIVATE=github.com/TecXLab/*

I am using Mac m1 chip.
Visual code is installed .
go version go1.17.9 darwin/arm64.

The * is interpreted by your shell.

You need to escape it by the rules of your shell. A backslash or singlequotes should do.

Thanks for your help.
Error solve with using backslash.

just delete the *. It is not needed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.