Skip to content

Commit a7359cd

Browse files
committed
Update CI go version and update the devfile.yaml
Signed-off-by: Mario Loriedo <[email protected]>
1 parent 90574dc commit a7359cd

File tree

24 files changed

+112
-143
lines changed

24 files changed

+112
-143
lines changed

.che/che-editor.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id: che-incubator/che-code/insiders
2+
registryUrl: https://eclipse-che.github.io/che-plugin-registry/main/v3

.devfile.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2022 Red Hat, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
schemaVersion: 2.1.0
16+
metadata:
17+
name: devfile-api
18+
attributes:
19+
controller.devfile.io/storage-type: ephemeral
20+
components:
21+
- name: devtools
22+
container:
23+
image: "quay.io/devfile/universal-developer-image:ubi8-latest"
24+
memoryLimit: 2Gi
25+
memoryRequest: 256Mi
26+
commands:
27+
- id: build-crds-and-schemas
28+
exec:
29+
component: devtools
30+
commandLine: ./build.sh
31+
label: Run build of CRDs and schemas
32+
- id: fetch-dependencies-for-go-ls
33+
exec:
34+
component: devtools
35+
commandLine: go mod vendor
36+
label: Fetch dependencies for Go LS
37+
- id: test
38+
exec:
39+
component: devtools
40+
commandLine: go test -v ./...
41+
label: Run tests

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/[email protected]
1919
with:
2020
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
21-
go-version: 1.13
21+
go-version: 1.18
2222

2323
- name: Generate Go sources, CRDs and schemas
2424
run: |

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Session.vim
7575
# auto-generated tag files
7676
tags
7777
### VisualStudioCode ###
78-
.vscode/*
7978
.history
8079
# End of https://www.gitignore.io/api/go,vim,emacs,visualstudiocode
8180
# IDE folders

.vscode/extensions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"eamodio.gitlens",
6+
"GitHub.vscode-pull-request-github",
7+
"golang.go",
8+
"redhat.vscode-xml",
9+
"redhat.vscode-yaml",
10+
]
11+
}

devfile.api.code-workspace

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"go.useLanguageServer": true,
1515
"go.languageServerExperimentalFeatures": {
16-
"documentLink": true,
1716
"diagnostics": true // for diagnostics as you type
1817
},
1918
"go.autocompleteUnimportedPackages": true,

devfile.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

go.mod

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/devfile/api/v2
22

3-
go 1.13
3+
go 1.18
44

55
require (
66
github.com/ghodss/yaml v1.0.0
@@ -17,3 +17,26 @@ require (
1717
sigs.k8s.io/controller-runtime v0.9.5
1818
sigs.k8s.io/yaml v1.2.0
1919
)
20+
21+
require (
22+
github.com/davecgh/go-spew v1.1.1 // indirect
23+
github.com/go-logr/logr v0.4.0 // indirect
24+
github.com/gogo/protobuf v1.3.2 // indirect
25+
github.com/golang/protobuf v1.5.2 // indirect
26+
github.com/googleapis/gnostic v0.5.5 // indirect
27+
github.com/hashicorp/errwrap v1.0.0 // indirect
28+
github.com/json-iterator/go v1.1.11 // indirect
29+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
30+
github.com/modern-go/reflect2 v1.0.1 // indirect
31+
github.com/pmezard/go-difflib v1.0.0 // indirect
32+
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect
33+
golang.org/x/text v0.3.6 // indirect
34+
google.golang.org/protobuf v1.26.0 // indirect
35+
gopkg.in/inf.v0 v0.9.1 // indirect
36+
gopkg.in/yaml.v2 v2.4.0 // indirect
37+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
38+
k8s.io/klog/v2 v2.8.0 // indirect
39+
k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7 // indirect
40+
k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471 // indirect
41+
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
42+
)

vendor/github.com/go-logr/logr/go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

vendor/github.com/google/gofuzz/go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)