Skip to content

CI/build should fail fast if no tags are available #7259

Description

@jsoref

This was reported a while ago... If you have a partial clone / a clone without tags / a repository that doesn't have tags, then the version file that's generated isn't compatible w/ the expectations of version.py:

    version = '0.1.dev1+gedcff4f'

guess that is setuptools_scm not being able to determine the right version number.

possible reasons:

  • you did not do a full git clone, but only fetched the latest state (thus it has not enough history information). a shallow clone will not work.
  • you also need to check out the correct tag, e.g. git checkout 1.2.0
  • the run pip install -e . and borg -V and it should tell 1.2.0.

Originally posted by @ThomasWaldmann in #6510 (comment)


Today, builds take >5 mins to fail in CI which is a lot of time for practically no benefit (you can't access the compiled content, you're just wasting GitHub resources and a build slot)

Activity

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions