Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit e42eb46

Browse files
committed
Added go #2673
1 parent 7a0fb30 commit e42eb46

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,17 @@
14111411
"datasourceTemplate": "github-releases",
14121412
"extractVersionTemplate": "^v(?<version>.+?)$"
14131413
},
1414+
{
1415+
"fileMatch": [
1416+
"^tools/go/manifest.yaml$"
1417+
],
1418+
"matchStrings": [
1419+
"version: \"?(?<currentValue>.*?)\"?\\n"
1420+
],
1421+
"depNameTemplate": "golang/go",
1422+
"datasourceTemplate": "github-tags",
1423+
"extractVersionTemplate": "^go(?<version>.+?)$"
1424+
},
14141425
{
14151426
"fileMatch": [
14161427
"^tools/gocryptfs/manifest.yaml$"

tools/go/Dockerfile.template

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
mkdir -p "${prefix}/opt/go"
11+
curl --silent --location "https://go.dev/dl/go${version}.linux-${alt_arch}.tar.gz" \
12+
| tar --extract --gzip --directory="${prefix}/opt/go" --strip-components=1 --no-same-owner
13+
ln -sf "/opt/go/bin/go" "${prefix}${target}/bin/go"
14+
ln -sf "/opt/go/bin/gofmt" "${prefix}${target}/bin/gofmt"
15+
EOF

tools/go/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: go
2+
version: 1.19.2
3+
check: ${binary} version | cut -d' ' -f3 | tr -d go
4+
tags:
5+
- type/cli
6+
- category/development
7+
homepage: https://github.com/golang/go
8+
description: Go programming language
9+
renovate:
10+
datasource: github-tags
11+
package: golang/go
12+
extractVersion: ^go(?<version>.+?)$

0 commit comments

Comments
 (0)