Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-3241

Add gomod-vendor-check flag

    XMLWordPrintable

Details

    • False
    • False
    • 0

    Description

      Needs to be added to downstream for both the quay-operator and quay-bridge-operator.


      As part of the efforts to unify and simplify Cachito configuration, for avoiding ambiguous situations during processing of Go dependencies, we are going to introduce the following change:

      For a repository that has go mod dependencies, if a vendor directory exists, Cachito will not process the request and set a fail state for it, unless a corresponding flag is set (gomod-vendor or gomod-vendor-check) [1].

      To prevent the situation we suggest to do one of the following:

      Stop using vendored dependencies; or

      Declare the gomod-vendor-check flag in container.yaml, e.g.:

      image_build_method: imagebuilder

      remote_source:

      repo: https://git.example.com/team/repo.git

      ref: 4967a2a43417b2ebe5a01ae7fc95cb0b6c190142

      pkg_managers:

      • gomod

      flags:

      • gomod-vendor-check

      This change will be introduced on Jan 21, 2022, so please make sure that your repositories meet the new requirements until then.

      For more information about gomod vendoring in Cachito, please read the Container Build documentation [2]. You can also follow the related tickets in Jira[3].

      Links:

      1. https://github.com/release-engineering/cachito/#flags

      2. https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/containers_from_source_multistage_builds_in_osbs#jive_content_id_Gomod_Vendoring
      3. https://issues.redhat.com/browse/CLOUDBLD-1710

      Attachments

        Activity

          People

            doconnor@redhat.com Dave O'Connor
            doconnor@redhat.com Dave O'Connor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: