[itt] `airbyte-cli` build failure
# contributing-to-airbyte
j
[itt]
airbyte-cli
build failure
u
It looks like both the current v0.7.0 and the commit we were using
4aa30c3f866cf4a551c64ea3d4c6eefea72cf2bc
are failing to pull in some dependencies?
Copy code
#5 28.05 # <http://github.com/danielgtaylor/restish/openapi|github.com/danielgtaylor/restish/openapi>
#5 28.05 pkg/mod/github.com/danielgtaylor/restish@v0.7.0/openapi/openapi.go:367:16: invalid type assertion: v.Default.(string) (non-interface type string on left)
#5 28.05 pkg/mod/github.com/danielgtaylor/restish@v0.7.0/openapi/openapi.go:373:22: invalid type assertion: v.Enum[j].(string) (non-interface type string on left)
#5 28.05 pkg/mod/github.com/danielgtaylor/restish@v0.7.0/openapi/openapi.go:400:12: undefined: openapi3.NewSwaggerLoader
#5 28.05 pkg/mod/github.com/danielgtaylor/restish@v0.7.0/openapi/openapi.go:520:44: undefined: openapi3.Swagger
#5 ERROR: executor failed running [/bin/sh -c go get -u <http://github.com/danielgtaylor/restish@v0.7.0|github.com/danielgtaylor/restish@v0.7.0>]: exit code: 2
u
@Davin Chia (Airbyte)
u
where are you seeing this?
u
yeah.
u
i was mucking with this. changing the version doesn't seem to fix it?
u
like i'm trying with
RUN go get -u <http://github.com/danielgtaylor/restish@v0.7.0|github.com/danielgtaylor/restish@v0.7.0>
and getting the same error.
u
@Davin Chia (Airbyte) in order to reproduce this you need to clean our your docker cache.
u
wait - we have Go?
u
./gradlew :airbyte-cli:airbyteDocker
u
then run that ^
u
some library we use depends on a go thing.
u
I thought Jared was talking in the abstract about Go
u
davin are you able to decipher why this code is not comiling?
u
Oh I was mostly joking since you have such a high opinion of Go, but we do use it in this one place.
u
or jared. any thoughts on what's up?
u
reading this it looks like it's failing to import a class
u
from a dep
u
but in that dep it looks like the class is there.
u
so i'm not sure what's going wrong.
u
I'm a couple of steps behind you. what version of Go are you using?
u
It’s all in the Docker image
u
1.14
u
but it's there!
u
infuriating.
u
interestingly 4 hr ago their most recent release changed off of this
u
which seems very suspicious. I’m just not sure where it’s picking up the wrong version for it
u
oh
u
i'll try switching it to NewLoader and see if that helps
u
I'm confused because I can't reproduce this and all I see in the airbyte-cli directory is a docker file haha
u
the thing is we were on this old branch
u
sorry am useless here
u
@Davin Chia (Airbyte) it literally is just that docker file
u
trying.
u
the docker build is failing since
go get -u <http://github.com/danielgtaylor/restish@4aa30c3f866cf4a551c64ea3d4c6eefea72cf2bc|github.com/danielgtaylor/restish@4aa30c3f866cf4a551c64ea3d4c6eefea72cf2bc>
just started failing earlier today
u
did you clear out your docker cache davin?
u
ah I see
u
okay this makes sense now
u
there’s a line in the logs actually
u
#5 7.354 go: <http://github.com/getkin/kin-openapi|github.com/getkin/kin-openapi> upgrade => v0.61.0
u
which looks like the problem
u
but doing this
RUN go get -u <http://github.com/cgardens/restish@8e61fbd56d4cf416d2db06131661b9956917f3b5|github.com/cgardens/restish@8e61fbd56d4cf416d2db06131661b9956917f3b5>
seems to still just try to pull @0.7.0 from main restish. 😞
u
i'm like a monkey at a typewriter.
u
even version 0.7.0 has an older version of the openapi lib https://github.com/danielgtaylor/restish/blob/v0.7.0/go.mod#L21
u
I’m not familiar with go modules at all, so maybe I’m reading this all wrong. I just assume that a version in the go.mod file would represent the version it pulls from?
u
why is it downloading kin-openapi v0.61.0 in the first place?
u
literally no idea.
u
@Davin Chia (Airbyte) any chance we could jump on a quick call to figure this out
u
@charles if this is blocking you from merging code I would just remove it from the build temporarily
u
the published version isn’t broken, only the current build
u
let's do it
u
can i join?
u
i'm curious at this point.
u
I was refreshing my knowledge of Go Mods
u
u
they were super responsive for a feature request in the past
u
do it again!
u
we are close
u
oops we got kicked out
u
u
thanks for doing all the real work here davin.