Skip to content

Commit c6e0038

Browse files
authored
Makego cleanup (#4079)
1 parent 26c9b20 commit c6e0038

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

.github/workflows/make-upgrade.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
git config user.name 'github-actions[bot]'
3030
git config user.email 'github-actions[bot]@users.noreply.github.com'
31-
- name: Make upgrade
32-
run: bash ./make/buf/scripts/githubactionmakeupgrade.bash
31+
- name: make-githubactionupgrade
32+
run : make githubactionupgrade
3333
env:
3434
GH_TOKEN: ${{ steps.app_token.outputs.token }}

make/buf/all.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,8 @@ checkandupdateprecommithooks:
179179
@bash make/buf/scripts/checkandupdateprecommithooks.bash
180180

181181
postupgrade:: checkandupdateprecommithooks
182+
183+
.PHONY: updatebufversion
184+
updatebufversion:
185+
$(SED_I) -E "s/BUF_VERSION \?=.*/BUF_VERSION ?= v${RELEASE_BUF_VERSION}/" "make/go/dep_buf.mk"
186+
$(SED_I) -E "s/\# https\:\/\/github.com\/bufbuild\/buf\/releases.*/\# https\:\/\/github.com\/bufbuild\/buf\/releases $(shell date "+%Y%m%d") checked $(shell date "+%Y%m%d")/" "make/go/dep_buf.mk"

make/go/base.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ upgradenopost:
216216
@$(MAKE) preupgrade
217217
@$(MAKE) generate
218218

219+
.PHONY: githubactionupgrade
220+
githubactionupgrade:
221+
bash $(MAKEGO)/scripts/githubactionmakeupgrade.bash
222+
219223
.PHONY: copyfrommakego
220224
copyfrommakego:
221225
@rm -rf $(TMP)/makego

make/go/buf.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,3 @@ bufbreaking: $(BUF)
6262
postlint:: bufbreaking
6363
endif
6464
endif
65-
66-
.PHONY: updatebufversion
67-
updatebufversion:
68-
$(SED_I) -E "s/BUF_VERSION \?=.*/BUF_VERSION ?= v${RELEASE_BUF_VERSION}/" "make/go/dep_buf.mk"
69-
$(SED_I) -E "s/\# https\:\/\/github.com\/bufbuild\/buf\/releases.*/\# https\:\/\/github.com\/bufbuild\/buf\/releases $(shell date "+%Y%m%d") checked $(shell date "+%Y%m%d")/" "make/go/dep_buf.mk"

make/go/dep_godoclint.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(call _assert_var,BUF_VERSION)
1212
#
1313
# Based off of dev branch.
1414
# https://github.com/bufbuild/godoc-lint/commits/dev
15-
GODOCLINT_VERSION ?= b4372dc9d4f721e956227cbcbd11947d81f246e2
15+
GODOCLINT_VERSION ?= 5405ef06cd81f5b3115c6e52744f6cd9a8fa84f1a
1616

1717
GODOCLINT := $(CACHE_VERSIONS)/godoclint/$(GODOCLINT_VERSION)
1818
$(GODOCLINT):

make/buf/scripts/githubactionmakeupgrade.bash renamed to make/go/scripts/githubactionmakeupgrade.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Managed by makego. DO NOT EDIT.
4+
35
set -euo pipefail
46

57
DIR="$(CDPATH= cd "$(dirname "${0}")/../../.." && pwd)"

0 commit comments

Comments
 (0)