Skip to content

Commit

Permalink
update go.mod release behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schrodi committed Mar 2, 2021
1 parent 4c79990 commit 10a7d7a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .ci/next_version
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0

set -o errexit
set -o nounset
set -o pipefail

apk add --no-cache git make musl-dev curl
curl -LO https://golang.org/dl/go1.16.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

SOURCE_DIR="$(dirname $0)/.."

# revert the version update in the gomod file
VERSION=$(cat ${SOURCE_DIR}/VERSION)

sed -i "s@github.com/gardener/landscaper/apis $VERSION@github.com/gardener/landscaper/apis v0.0.0-00010101000000-000000000000@" \
${SOURCE_DIR}/go.mod

cd $SOURCE_DIR
make revendor
1 change: 1 addition & 0 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ landscaper:
release:
nextversion: 'bump_minor'
release_callback: '.ci/release'
next_version_callback: '.ci/next_version'
git_tags:
- ref_template: 'refs/tags/{VERSION}'
- ref_template: 'refs/tags/apis/{VERSION}'
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/docker/cli v20.10.0-rc1+incompatible
github.com/gardener/component-cli v0.14.0
github.com/gardener/component-spec/bindings-go v0.0.32
github.com/gardener/landscaper/apis v0.6.0
github.com/gardener/landscaper/apis v0.0.0-00010101000000-000000000000
github.com/go-logr/logr v0.3.0
github.com/go-logr/zapr v0.3.0
github.com/golang/mock v1.4.4
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ github.com/gardener/component-spec/bindings-go/codec
github.com/gardener/component-spec/bindings-go/ctf
github.com/gardener/component-spec/bindings-go/oci
github.com/gardener/component-spec/bindings-go/utils/selector
# github.com/gardener/landscaper/apis v0.6.0 => ./apis
# github.com/gardener/landscaper/apis v0.0.0-00010101000000-000000000000 => ./apis
## explicit
github.com/gardener/landscaper/apis/config
github.com/gardener/landscaper/apis/config/install
Expand Down

0 comments on commit 10a7d7a

Please sign in to comment.