Work with Go modules Stay organized with collections Save and categorize content based on your preferences.
Artifact Registry supports Go modules and semantic versioning independent of yourversion control system. Go modules stored in Artifact Registry can be usedalongside other public or private modules in your Go projects.
Overview
To get familiar with storing Go modules in Artifact Registry, you can trythequickstart.
When you're ready to learn more, read the following information:
- Create a Go module repository for your packages.
- Grant permissions to the account thatwill connect with the repository. Service accounts for common integrationswith Artifact Registry have defaultpermissions forrepositories in the same project.
- Set up authentication to Artifact Registry for Go.
- Manage your Go modules.
- Learn aboutsemantic versioning in Go.
- Learn how to createremote andvirtual repositories.
- Read about how remote and virtual repositories can be used in thisrepository usage example.
Audit logging
To view Go log entries in Cloud Logging, you mustenableDATA_WRITE logging.
When you upload a Go module to a repository, the operation is logged asUploadGoModule. Artifact Registry logs the following specific methods forGo repositories:
List versions in a module
Go-ListVersions
View module information
Go-ViewModInfo
Download thego.mod File
Go-DownloadModFile
Download the zip File
Go-DownloadZipFile
For information about other Artifact Registry log entries, seeView audit logs.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.