Skip to content

Circular dependancy in go.mod. file #9453

Closed

Description

@Kump3r

Summary

Generating BOM for Concourse results in a circular dependancy due to: tedsuo/ifrit:

References:
tedsuo/ifrit#44
CycloneDX/cyclonedx-gomod#720

Steps to Reproduce

  1. go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest
  2. cyclonedx-gomod mod -licenses -test -output sbom.yml -output-version "1.4" -verbose

Expected Results

BOM should not have a circular dependancy

Actual Results

Resulting sbom, has a circular dependancy:

    <dependency ref="pkg:golang/github.com/tedsuo/[email protected]?type=module">
      <dependency ref="pkg:golang/github.com/onsi/ginkgo/[email protected]?type=module"></dependency>
      <dependency ref="pkg:golang/github.com/onsi/[email protected]?type=module"></dependency>
      <dependency ref="pkg:golang/github.com/tedsuo/[email protected]?type=module"></dependency>
      <dependency ref="pkg:golang/golang.org/x/[email protected]?type=module"></dependency>
      <dependency ref="pkg:golang/google.golang.org/[email protected]?type=module"></dependency>
    </dependency>

notice how pkg:golang/github.com/tedsuo/ifrit depends on itself for the same version.
As I mentioned in the other investigation go mod graph reports it depends on an older version of itself though

Web Node(s) configuration

N/A

Worker(s) configuration

N/A

Concourse Version

8.0.1

Browser (if applicable)

No response

Did this use to work?

No response

Activity

  1. Kump3r commented on Feb 10, 2026

    @Kump3r
    ContributorAuthor
  2. added this to the v8.1.0 milestone on Feb 11, 2026
  3. taylorsilva commented on Feb 11, 2026

    @taylorsilva
    Member

    We discussed this in the WG meeting today. We decided that if the PR doesn't get merged we'll fork ifrit.

  4. modified the milestones: v8.1.0, v8.2.0 on Feb 26, 2026
  5. taylorsilva commented on Feb 26, 2026

    @taylorsilva
    Member

    I moved this to the 8.2.0 milestone, but we can include it in a patch release of 8.1.x. Going to ignore it for now while making the 8.1.x release.

  6. Kump3r commented on Apr 18, 2026

    @Kump3r
    ContributorAuthor

    tedsuo/ifrit#45 (comment) - merged! @taylorsilva can we include the bump in the next official release of Concourse! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions