Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Artifact Registry admite módulos Go y control de versión semántica independientemente de tu
sistema de control de versión. Los módulos de Go almacenados en Artifact Registry se pueden usar junto con otros módulos públicos o privados en tus proyectos de Go.
Descripción general
Para familiarizarte con el almacenamiento de módulos de Go en Artifact Registry, puedes probar la guía de inicio rápido.
Cuando quieras obtener más información, lee lo siguiente:
Otorga permisos a la cuenta que se conectará con el repositorio. Las cuentas de servicio para las integraciones comunes con Artifact Registry tienen permisos predeterminados en los repositorios del mismo proyecto.
Obtén información sobre cómo se pueden usar los repositorios remotos y virtuales en este ejemplo de uso de repositorios.
Registros de auditoría
Para ver las entradas de registro de Go en Cloud Logging, debes habilitar el registro de DATA_WRITE.
Cuando subes un módulo Go a un repositorio, la operación se registra como UploadGoModule. Artifact Registry registra los siguientes métodos específicos para los repositorios de Go:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eArtifact Registry allows storing Go modules with semantic versioning, independent of your version control.\u003c/p\u003e\n"],["\u003cp\u003eYou can use Go modules in Artifact Registry alongside other public or private modules in your Go projects.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Artifact Registry for Go involves creating a repository, granting permissions, and configuring authentication.\u003c/p\u003e\n"],["\u003cp\u003eArtifact Registry logs various operations for Go repositories, including listing versions, viewing module info, and downloading files.\u003c/p\u003e\n"],["\u003cp\u003eTo view Go log entries, \u003ccode\u003eDATA_WRITE\u003c/code\u003e logging must be enabled in Cloud Logging.\u003c/p\u003e\n"]]],[],null,["# Work with Go modules\n\nArtifact Registry supports Go modules and semantic versioning independent of your\nversion control system. Go modules stored in Artifact Registry can be used\nalongside other public or private modules in your Go projects.\n\nOverview\n--------\n\nTo get familiar with storing Go modules in Artifact Registry, you can try\nthe [quickstart](/artifact-registry/docs/go/store-go).\n\nWhen you're ready to learn more, read the following information:\n\n- [Create a Go module repository](/artifact-registry/docs/repositories/create-repos) for your packages.\n- [Grant permissions](/artifact-registry/docs/access-control) to the account that will connect with the repository. Service accounts for common integrations with Artifact Registry have default [permissions](/artifact-registry/docs/access-control#gcp) for repositories in the same project.\n- [Set up authentication to Artifact Registry for Go](/artifact-registry/docs/go/authentication).\n- [Manage your Go modules](/artifact-registry/docs/go/manage-modules).\n- Learn about [semantic versioning in Go](https://go.dev/doc/modules/version-numbers).\n- Learn how to create [remote](/artifact-registry/docs/repositories/remote-repo#go) and [virtual repositories](/artifact-registry/docs/repositories/virtual-repo).\n- Read about how remote and virtual repositories can be used in this [repository usage example](/artifact-registry/docs/repositories#example).\n\nAudit logging\n-------------\n\nTo view Go log entries in Cloud Logging, you must [enable](/logging/docs/audit/configure-data-access#config-console-enable)\n`DATA_WRITE` logging.\n\nWhen you upload a Go module to a repository, the operation is logged as\n`UploadGoModule`. Artifact Registry logs the following specific methods for\nGo repositories:\n\nList versions in a module\n\n- `Go-ListVersions`\n\nView module information\n\n- `Go-ViewModInfo`\n\nDownload the `go.mod` File\n\n- `Go-DownloadModFile`\n\nDownload the zip File\n\n- `Go-DownloadZipFile`\n\nFor information about other Artifact Registry log entries, see\n[View audit logs](/artifact-registry/docs/audit-logging)."]]