Skip to content

Autobuild breaks with Go 1.18 code #1059

@hairyhenderson

Description

@hairyhenderson

Go 1.18 introduced generics, and projects which are starting to use generics will no longer work with Autobuild, which seems to be built with Go 1.17.

Here's an example of a workflow that fails due to this issue:

https://github.com/hairyhenderson/go-fsimpl/runs/6335289871?check_suite_focus=true

Notable log messages:

...
[2022-05-07 15:31:05] [build-stderr] 2022/05/07 15:31:05 Autobuilder was built with go1.17.9, environment has go1.17.9
...
[2022-05-07 15:31:52] [build-stderr] 2022/05/07 15:31:52 Error running go tooling: err: exit status 1: stderr: go build github.com/Azure/azure-sdk-for-go/sdk/storage/azblob: build constraints exclude all Go files in /home/runner/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/storage/[email protected]

I looked in the documentation for a way to force Autobuild to use Go 1.18, but couldn't find one - is there a workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions