Add goproxy local and virtual #70

Open
unkin-agent wants to merge 2 commits from benvin/go into main
6 changed files with 27 additions and 0 deletions
+5
View File
@@ -97,6 +97,11 @@ locals {
trimsuffix(basename(file_path), ".yaml") => content
if startswith(file_path, "local_npm/")
}
local_goproxy = {
for file_path, content in local.all_configs :
trimsuffix(basename(file_path), ".yaml") => content
if startswith(file_path, "local_goproxy/")
}
local_ansible = {
for file_path, content in local.all_configs :
trimsuffix(basename(file_path), ".yaml") => content
+1
View File
@@ -0,0 +1 @@
description: "Internal Go modules"
+5
View File
@@ -0,0 +1,5 @@
package_type: goproxy
description: "Virtual Go module proxy over internal and public modules — member order is priority order for duplicate versions"
members:
- go-internal
- goproxy
@@ -35,6 +35,7 @@ inputs = {
local_rpm = local.config.local_rpm
local_helm = local.config.local_helm
local_npm = local.config.local_npm
local_goproxy = local.config.local_goproxy
local_gems = local.config.local_gems
local_ansible = local.config.local_ansible
local_docker = local.config.local_docker
+7
View File
@@ -209,6 +209,13 @@ resource "artifactapi_local_npm" "this" {
description = each.value.description
}
resource "artifactapi_local_goproxy" "this" {
for_each = var.local_goproxy
name = each.key
description = each.value.description
}
resource "artifactapi_local_gems" "this" {
for_each = var.local_gems
+8
View File
@@ -215,6 +215,14 @@ variable "local_npm" {
default = {}
}
variable "local_goproxy" {
description = "Map of local Go module proxies"
type = map(object({
description = optional(string, "")
}))
default = {}
}
variable "local_gems" {
description = "Map of local gems repositories"
type = map(object({