Skip to content

Update GitHub Action for PRs to use go 1.15.13 and old version of addlicense#548

Merged
amisevsk merged 2 commits into
devfile:mainfrom
amisevsk:update-gh-action-go-version
Aug 10, 2021
Merged

Update GitHub Action for PRs to use go 1.15.13 and old version of addlicense#548
amisevsk merged 2 commits into
devfile:mainfrom
amisevsk:update-gh-action-go-version

Conversation

@amisevsk
Copy link
Copy Markdown
Collaborator

@amisevsk amisevsk commented Aug 10, 2021

What does this PR do?

This PR separates out the change described in #540 (comment) by updating the GH action to use go 1.15.13 and avoid issue golang/go#44557

It also pins the version of addlicense used in github actions to google/addlicense@99ebc9c, as the following commits make addlicense require Go 1.16

What issues does this PR fix or reference?

I noticed that the automated check for #544 is failing due to

build github.com/google/addlicense: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

Is it tested? How?

Hopefully all actions pass :)

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path to trigger)
    • v7-devworkspaces-operator-e2e: DevWorkspace e2e test
    • v7-devworkspace-happy-path: DevWorkspace e2e test

This is required due to golang/go#44557 -- go
1.16 deprecates the ioutil package and introduces a new package io in
its place. Go versions below 1.15.10 can fail if a library or dependency
uses the go 1.16 package, e.g. for addlicense:

build github.com/google/addlicense: cannot load io/fs: malformed module path "io/fs": missing dot in first path element

This commit updates to Go 1.15.13, as that is what's used in the current
builder image for the controller

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
As of the commit following the one used in this PR, addlicense requires
Go 1.16 (go get fails on 1.15 and below)

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk amisevsk force-pushed the update-gh-action-go-version branch from 250a2bf to 8700858 Compare August 10, 2021 17:03
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Aug 10, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk, JPinkney

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@amisevsk
Copy link
Copy Markdown
Collaborator Author

/test v7-devworkspaces-operator-e2e, v7-devworkspace-happy-path

@amisevsk amisevsk changed the title Update GitHub Action for PRs to use go 1.15.13 Update GitHub Action for PRs to use go 1.15.13 and old version of addlicense Aug 10, 2021
@amisevsk amisevsk merged commit 8946d1b into devfile:main Aug 10, 2021
@amisevsk amisevsk deleted the update-gh-action-go-version branch August 10, 2021 20:17
Copy link
Copy Markdown
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants