Work with Go modules

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:

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.