Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1523

Git tags are in conflicts with Go package versioning

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • Build and Tools
    • None

      Tags set for eel release (eg 5.0.1) are in conflicts with the current logic of glide (a package manager for Go code)

      Explanation:
      xds-agent is written in Go and depends on various go libraries. To pick up the right version of each go library/package we use glide (a package manager, like npm for nodejs). Dependencies are defined in glide.yaml file : https://git.automotivelinux.org/src/xds/xds-agent/tree/glide.yaml#n24

      For example at lines 24-25, that xds-agent depends on xds-common package where we request version ~0.3.0 (see [1] for more info about ~ meaning).
      When you run glide to retrieve (download) all dependencies/packages, glide clone the specified repo (eg. [gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git|gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git]) and checkout the tag or commit ID specified by "version" field, in this example, glide will checkout tag "0.3.0" or "v0.3.0" that is the same.

      So that means that tags you added for eel (eel/5.0.1 , eel_5.0.1), and more specifically 5.0.1, will be problematic when xds-common source code version will be 5.x.x.
      https://git.automotivelinux.org/src/xds/xds-common/refs/

      That's OK for me to keep "eel/xxx" or any "agl_version_name/agl_version_digit" tags, because glide will ignored them, but I would like to remove tag x.y..z tag (like 5.0.1).

      Is it feasible ?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            SebD Sebastien Douheret
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: