From 1ca5f282879da0b912141ed820fb6772cd3ea484 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Tue, 3 Dec 2024 11:25:16 +0100 Subject: [PATCH] feat(COR-1065): remove buildpacks --- cmd/application_update.go | 1 - go.mod | 4 ++-- go.sum | 4 ++++ utils/env_var.go | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cmd/application_update.go b/cmd/application_update.go index 8b6979b7..c4db9ce0 100644 --- a/cmd/application_update.go +++ b/cmd/application_update.go @@ -73,7 +73,6 @@ var applicationUpdateCmd = &cobra.Command{ }, BuildMode: application.BuildMode, DockerfilePath: application.DockerfilePath, - BuildpackLanguage: application.BuildpackLanguage, Cpu: application.Cpu, Memory: application.Memory, MinRunningInstances: application.MinRunningInstances, diff --git a/go.mod b/go.mod index bd33698c..df0963f9 100644 --- a/go.mod +++ b/go.mod @@ -23,11 +23,11 @@ require ( github.com/pkg/errors v0.9.1 github.com/posthog/posthog-go v1.2.24 github.com/pterm/pterm v0.12.79 - github.com/qovery/qovery-client-go v0.0.0-20240918181134-faa9e7a86f41 + github.com/qovery/qovery-client-go v0.0.0-20241203095515-b7bfff7f6c11 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/tonistiigi/go-rosetta v0.0.0-20220804170347-3f4430f2d346 github.com/xlab/treeprint v1.2.0 golang.org/x/net v0.29.0 diff --git a/go.sum b/go.sum index 375ab714..d36eafeb 100644 --- a/go.sum +++ b/go.sum @@ -146,6 +146,8 @@ github.com/pterm/pterm v0.12.79 h1:lH3yrYMhdpeqX9y5Ep1u7DejyHy7NSQg9qrBjF9dFT4= github.com/pterm/pterm v0.12.79/go.mod h1:1v/gzOF1N0FsjbgTHZ1wVycRkKiatFvJSJC4IGaQAAo= github.com/qovery/qovery-client-go v0.0.0-20240918181134-faa9e7a86f41 h1:O31SMjmmJOSzdZbXPg++TetM0Q3TmvuYa/jOMDkiR4A= github.com/qovery/qovery-client-go v0.0.0-20240918181134-faa9e7a86f41/go.mod h1:9eHj5a4EtXGIyfbvVL3HVYW9k7Xmiwi00OqHrP4dc10= +github.com/qovery/qovery-client-go v0.0.0-20241203095515-b7bfff7f6c11 h1:racjGI7jQTgKOZTrYFGwCtceW3aMhfCKQZdpjVENZqM= +github.com/qovery/qovery-client-go v0.0.0-20241203095515-b7bfff7f6c11/go.mod h1:hAMMDu1kk2rNJRf8MiYV0E+07DhDXpvNddj9q8YpbFs= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= @@ -164,6 +166,8 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tonistiigi/go-rosetta v0.0.0-20220804170347-3f4430f2d346 h1:TvtdmeYsYEij78hS4oxnwikoiLdIrgav3BA+CbhaDAI= github.com/tonistiigi/go-rosetta v0.0.0-20220804170347-3f4430f2d346/go.mod h1:xKQhd7snlzKFuUi1taTGWjpRE8iFTA06DeacYi3CVFQ= github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= diff --git a/utils/env_var.go b/utils/env_var.go index b1849b3d..43081407 100644 --- a/utils/env_var.go +++ b/utils/env_var.go @@ -200,11 +200,14 @@ func UpdateEnvironmentVariable( return fmt.Errorf("environment variable %s not found", errorKey) } + nullableValue := qovery.NullableString{} + nullableValue.Set(&value) + // fmt.Printf(envVar.Id) variableId := envVar.Id variableEditRequest := qovery.VariableEditRequest{ Key: key, - Value: value, + Value: nullableValue, } _, _, err = client.VariableMainCallsAPI.EditVariable(context.Background(), variableId).VariableEditRequest(variableEditRequest).Execute()