Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work with concourse v7 and golang 1.16 #6

Conversation

combor
Copy link
Contributor

@combor combor commented Jun 10, 2021

What

stopover is failing to compile on golang 1.16 and throwing such error:

github.com/EngineerBetter/stopover imports
    github.com/concourse/concourse/atc: cannot find module providing package github.com/concourse/concourse/atc
github.com/EngineerBetter/stopover imports
    github.com/concourse/concourse/go-concourse/concourse: cannot find module providing package github.com/concourse/concourse/go-concourse/concourse

we had to move vendoring method to use go mod and re-vendor all dependencies.

This made us also to fix some tests to use newer structures form go-concourse client and fix tests.

We also had to record new responses for howerfly as it was upgraded to v5 schema and the old recording was not compatible as it was using v3.

How to test

ginkgo -r -v

Piotr Komborski added 3 commits June 10, 2021 13:53
this is needed for golang 1.16 as the build fails with such error message:

github.com/EngineerBetter/stopover imports
    github.com/concourse/concourse/atc: cannot find module providing package github.com/concourse/concourse/atc
github.com/EngineerBetter/stopover imports
    github.com/concourse/concourse/go-concourse/concourse: cannot find module providing package github.com/concourse/concourse/go-concourse/concourse
pipelines have their own type now with Name being a specific field. Also fixed some issues around new version of Hoverfly
and compare strings as *gbytes.Buffer was somehow different even if the string is same and we couldn't find why
@crsimmons
Copy link
Contributor

I've tested this on Concourse 5.8.1 and 6.7.4 and it appears to work. @BooleanCat confirmed the tests passed earlier. LGTM 🚢

@BooleanCat BooleanCat merged commit bc247fe into EngineerBetter:master Jun 11, 2021
@BooleanCat
Copy link
Contributor

Thanks for the work on this, appreciated @combor!

@BooleanCat
Copy link
Contributor

I've shipped v2.0.1 with this change.

@combor combor deleted the make_it_work_with_go_1_16 branch June 11, 2021 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants