Commit Graph

10 Commits

Author SHA1 Message Date
Armel Soro
7b9f214299 Bump Go to 1.19 (#6586)
* Set Go version in go.mod

go mod edit -go=1.19

* Fix formatting issues reported by gofmt

* Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16:
As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details. (staticcheck)

* Use Go 1.19 in our Dockerfiles

* Use Go 1.19 in the rpm-prepare.sh script

* Update the tag for the IBM Cloud CI image
2023-02-16 09:03:48 -05:00
Philippe Martin
4b2e935e5d Use oc v4.11 instead v4.7 to fix version retrieval (#6559) 2023-02-02 10:13:44 +01:00
Philippe Martin
a301e86af8 Build and push .ibm/images/Dockerfile image (#6309)
* Build and push .ibm/images/Dockerfile image

* Add robot account

* Use checkout@v3
2022-11-16 10:30:10 +00:00
Dharmit Shah
f062c11a11 Update odo to use go 1.18 (#6166)
* Update odo to use go 1.18

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Update golangci-lint version in Makefile

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go 1.18, not go 1.19

Erroneously I had used go 1.19 at various places.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Rearrange imports; fix golangci-lint errors

Fixed a bunch of golangci-lint errors like below:

`File is not `gofmt`-ed with `-s``

using the command: `golangci-lint run --fix`

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go install instead of go get

This is because with go 1.18, `go get` behaves as `go get -d` by
default. Which means that it will only download, but not install.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-11-09 05:31:38 -05:00
Anand Kumar Singh
c12ed3109d update dockerfile to install dependencies (#5784)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-06-02 05:36:05 -04:00
Philippe Martin
bd8e78a05e odo dev store information about currently forwarded ports (#5703)
* Save state (forwarded ports + PID + timestamp) to local file and cleanup

* Integration tests

* Documentation

* Update docs/website/versioned_docs/version-3.0.0/command-reference/dev.md

Co-authored-by: Armel Soro <armel@rm3l.org>

* Fail when an error happens writing state file
In case of error during initialization, odo dev cleanup the resources

* Fix typo

* Test localPort matches a number

* Remove PID and timestamp from state + rename to devstate.json

* Run IBM cloud tests as non root

* Fix doc

* Review

* Remove reference to PID/timestamp from doc

Co-authored-by: Armel Soro <armel@rm3l.org>
2022-05-05 04:12:25 -04:00
Anand Kumar Singh
098389b027 update go version to use go 1.17 (#5497)
* update go version to 1.17

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update go version to 1.17 and fix failure

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-04-29 12:20:35 -04:00
Philippe Martin
2b00f1cc01 Use odo-robot to post logs to PR (#5302) 2021-12-20 13:30:28 +01:00
Anand Kumar Singh
11e43f531c Windows tests on Ibm pipeline (#5281)
* windows tests on ibm pipeline

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* fix devfile watch tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use env for windows IP instead

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use env for windows IP instead

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2021-12-16 14:17:50 +01:00
Philippe Martin
07ef685df7 Use an image with pre-installed oc/kubectl/ibmcloud for IBM Pipelines (#5269)
* Use an image with pre-installed oc/kubectl/ibmcloud for IBM Pipelines

* Increase time for unit tests (very long on single CPU VM)

* Dockerfile for build image
2021-12-03 17:02:46 +01:00