Skip to content

Commit 4d70295

Browse files
committed
fixup! chore: Add new go stack version with the new runtime image version
1 parent 27f5612 commit 4d70295

5 files changed

Lines changed: 84 additions & 4 deletions

File tree

stacks/go/1.5.0/devfile.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
schemaVersion: 2.2.0
2+
metadata:
3+
name: go
4+
displayName: Go Runtime
5+
description: Go (version 1.24.x) is an open source programming language that makes it easy to build simple, reliable, and efficient software.
6+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/golang.svg
7+
tags:
8+
- Go
9+
projectType: Go
10+
language: Go
11+
provider: Red Hat
12+
version: 1.5.0
13+
starterProjects:
14+
- name: go-starter
15+
description: A Go project with a simple HTTP server
16+
git:
17+
checkoutFrom:
18+
revision: v1.5.0
19+
remotes:
20+
origin: https://github.com/devfile-samples/devfile-stack-go.git
21+
components:
22+
- container:
23+
endpoints:
24+
- name: https-go
25+
targetPort: 8080
26+
protocol: https
27+
- exposure: none
28+
name: debug
29+
targetPort: 5858
30+
image: registry.access.redhat.com/ubi9/go-toolset:1.25.5-1770654497
31+
args: ["tail", "-f", "/dev/null"]
32+
env:
33+
- name: DEBUG_PORT
34+
value: '5858'
35+
memoryLimit: 1024Mi
36+
mountSources: true
37+
name: runtime
38+
commands:
39+
- exec:
40+
env:
41+
- name: GOPATH
42+
value: ${PROJECT_SOURCE}/.go
43+
- name: GOCACHE
44+
value: ${PROJECT_SOURCE}/.cache
45+
commandLine: go build main.go
46+
component: runtime
47+
group:
48+
isDefault: true
49+
kind: build
50+
workingDir: ${PROJECT_SOURCE}
51+
id: build
52+
- exec:
53+
commandLine: ./main
54+
component: runtime
55+
group:
56+
isDefault: true
57+
kind: run
58+
workingDir: ${PROJECT_SOURCE}
59+
id: run
60+
- exec:
61+
env:
62+
- name: GOPATH
63+
value: ${PROJECT_SOURCE}/.go
64+
- name: GOCACHE
65+
value: ${PROJECT_SOURCE}/.cache
66+
commandLine: |
67+
dlv \
68+
--listen=127.0.0.1:${DEBUG_PORT} \
69+
--only-same-user=false \
70+
--headless=true \
71+
--api-version=2 \
72+
--accept-multiclient \
73+
debug --continue main.go
74+
component: runtime
75+
group:
76+
isDefault: true
77+
kind: debug
78+
workingDir: ${PROJECT_SOURCE}
79+
id: debug
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ metadata:
99
projectType: Go
1010
language: Go
1111
provider: Red Hat
12-
version: 2.5.0
12+
version: 2.6.0
1313
starterProjects:
1414
- name: go-starter
1515
description: A Go project with a simple HTTP server
1616
git:
1717
checkoutFrom:
18-
revision: v2.5.0
18+
revision: v2.6.0
1919
remotes:
2020
origin: https://github.com/devfile-samples/devfile-stack-go.git
2121
components:

stacks/go/stack.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ versions:
1616
- version: 1.3.1
1717
# 1.4.0: go 1.24
1818
- version: 1.4.0
19+
- version: 1.5.0
1920
- version: 2.0.0
2021
# 2.1.0: debug command via dlv
2122
- version: 2.1.0
@@ -27,6 +28,6 @@ versions:
2728
- version: 2.4.0
2829
# 2.5.0: debug command via dlv & go 1.24
2930
- version: 2.5.0
30-
# 2.5.1: updated runtime image version
31-
- version: 2.5.1
31+
# 2.6.0: updated runtime image version
32+
- version: 2.6.0
3233
default: true # should have one and only one default version

0 commit comments

Comments
 (0)