From 796703a8e158261625daec48c1e9d13cda404f32 Mon Sep 17 00:00:00 2001 From: adohe Date: Tue, 26 Mar 2024 12:02:23 +0800 Subject: [PATCH] feat: build generator support darwin/arm64 --- go.mod | 2 +- go.sum | 4 ++-- pkg/cmd/mod/mod_push.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index c9dd5c1e..5ec0f7ec 100644 --- a/go.mod +++ b/go.mod @@ -318,4 +318,4 @@ require ( sigs.k8s.io/yaml v1.3.0 // indirect ) -replace kcl-lang.io/kpm => github.com/KusionStack/kpm v0.8.3 +replace kcl-lang.io/kpm => github.com/KusionStack/kpm v0.8.4 diff --git a/go.sum b/go.sum index 5da3fc4e..31febf55 100644 --- a/go.sum +++ b/go.sum @@ -234,8 +234,8 @@ github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8 github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/KusionStack/kpm v0.8.3 h1:3C0Alj79Rp3Xn3QLwh0IBlS5in5XMmB5Oasx3wqvwig= -github.com/KusionStack/kpm v0.8.3/go.mod h1:3atE1tEbsSPaAuKslkADH1HTDi7SMWlDWllmuk2XsBA= +github.com/KusionStack/kpm v0.8.4 h1:6CfgJ4jIeLkbHyELct/dBu/tmlhuvhv8QcP8mJ4/bE8= +github.com/KusionStack/kpm v0.8.4/go.mod h1:3atE1tEbsSPaAuKslkADH1HTDi7SMWlDWllmuk2XsBA= github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= github.com/MarvinJWendt/testza v0.1.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs= diff --git a/pkg/cmd/mod/mod_push.go b/pkg/cmd/mod/mod_push.go index af6cff14..85c45b74 100644 --- a/pkg/cmd/mod/mod_push.go +++ b/pkg/cmd/mod/mod_push.go @@ -53,9 +53,9 @@ var ( // denotes the latest stable version of a module. const LatestVersion = "latest" -// All supported platforms, to reduce module package size, not support arm64 for now. +// All supported platforms, to reduce module package size, only support widely used os and arch. var supportPlatforms = []string{ - "linux/amd64", "darwin/amd64", "windows/amd64", + "linux/amd64", "darwin/amd64", "windows/amd64", "darwin/arm64", } // PushModFlags directly reflect the information that CLI is gathering via flags. They will be converted to