Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Merge self-upgrade into main #10

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,40 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/cert-manager
- folder_name: executable
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/executable
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/generate-verify
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/help
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/klone
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/tools
6 changes: 2 additions & 4 deletions make/_shared/executable/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

exe_operating_systems ?= darwin,linux,windows
exe_architectures ?= amd64,arm,arm64,ppc64le,s390x
exe_targets ?= darwin_amd64_v1,darwin_arm64,linux_amd64_v1,linux_arm_7,linux_arm64,linux_ppc64le,linux_s390x,windows_amd64_v1,windows_arm64

ifndef bin_dir
$(error bin_dir is not set)
Expand Down Expand Up @@ -112,8 +111,7 @@ define template_for_target
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[1] = "-w")' | \
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[2] = "$(go_$(1)_ldflags)")' | \
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .gobinary = "$(GO)")' | \
os=$(exe_operating_systems) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goos = (env(os) | split(",")))' | \
archs=$(exe_architectures) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goarch = (env(archs) | split(",")))' |
targets=$(exe_targets) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .targets = (env(targets) | split(",")))' |
endef

## Build the go source for release. This will build the source
Expand Down