Skip to content

Guide for writing function in go has issues with v2 updates #1003

@jbw976

Description

@jbw976

URL

https://docs.crossplane.io/v2.0/guides/write-a-composition-function-in-go/

What's Wrong?

The example function in https://docs.crossplane.io/v2.0/guides/write-a-composition-function-in-go/ imports the types from provider-upjet-aws:v2:

go get github.com/crossplane-contrib/[email protected]

Which results in:

❯ go get github.com/crossplane-contrib/[email protected]
go: github.com/crossplane-contrib/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/crossplane-contrib/provider-upjet-aws/v2")

This may possibly work after:

But there may be further issues blocking the entire guide working smoothly. We should revisit this guide now that v2 has shipped, make sure everything works, and make any updates that are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions