Skip to content

Commit d0bac4e

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: exit with success when already up to date (go-gitea#35312) Update to [email protected] (go-gitea#35310) Upgrade devcontainer go version to 1.24.6 (go-gitea#35298)
2 parents b84a143 + c4b70c5 commit d0bac4e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "Gitea DevContainer",
33
"image": "mcr.microsoft.com/devcontainers/go:1.24-bookworm",
4+
"containerEnv": {
5+
// override "local" from packaged version
6+
"GOTOOLCHAIN": "auto"
7+
},
48
"features": {
59
// installs nodejs into container
610
"ghcr.io/devcontainers/features/node:1": {

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ XGO_VERSION := go-1.25.x
2828
AIR_PACKAGE ?= github.com/air-verse/air@v1
2929
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3
3030
GOFUMPT_PACKAGE ?= mvdan.cc/[email protected]
31-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
31+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.4.0
3232
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3333
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/[email protected]
3434
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]

contrib/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fi
8585
# confirm update
8686
echo "Checking currently installed version..."
8787
current=$(giteacmd --version | cut -d ' ' -f 3)
88-
[[ "$current" == "$giteaversion" ]] && echo "$current is already installed, stopping." && exit 1
88+
[[ "$current" == "$giteaversion" ]] && echo "$current is already installed, stopping." && exit 0
8989
if [[ -z "${no_confirm:-}" ]]; then
9090
echo "Make sure to read the changelog first: https://github.com/go-gitea/gitea/blob/main/CHANGELOG.md"
9191
echo "Are you ready to update Gitea from ${current} to ${giteaversion}? (y/N)"

0 commit comments

Comments
 (0)