Skip to content

Mismatch between v2.10.2 GitHub tag and Go module artifact #868

@ddetommaso

Description

@ddetommaso

I found an inconsistency between the GitHub repository and the Go module artifact for:

github.com/compose-spec/compose-go/v2@v2.10.2

Repository (GitHub) behavior

ApplyInclude(...)
ApplyExtends(...)

Example:
https://github.com/compose-spec/compose-go/blob/v2.10.2/loader/loader.go


Go module artifact behavior

The module fetched via Go (proxy.golang.org) still contains the old order:

ApplyExtends(...)
ApplyInclude(...)

Verified via:

https://proxy.golang.org/github.com/compose-spec/compose-go/v2/@v/v2.10.2.zip

and local module cache:

$GOMODCACHE/github.com/compose-spec/compose-go/v2@v2.10.2/loader/loader.go

Impact

This causes include + extends inheritance to still fail when consuming the module:

  • docker/compose fails with the module artifact
  • the same code works when using a local checkout (replace => ../compose-go)

Summary

  • GitHub tag v2.10.2 → fixed behavior
  • Go module artifact v2.10.2 → old behavior

So the module content does not match the tagged source.

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