<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tools/read-version, branch 22.1</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=22.1</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=22.1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2020-03-24T15:42:05+00:00</updated>
<entry>
<title>tools: use python3 (#274)</title>
<updated>2020-03-24T15:42:05+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2020-03-24T15:42:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=9bb1ae9106ce1de4f53233faa329863c1191551a'/>
<id>urn:sha1:9bb1ae9106ce1de4f53233faa329863c1191551a</id>
<content type='text'>
* tools: use python3

Switch tools/ to use python3 instead of python.  At minimum this
fixes building deb on python3 only releases like Focal. Applied
via shell commands:

 $ grep 'usr/bin/.*python' tools/* 2&gt;/dev/null | \
     grep -v python3 | awk -F':' '{print $1}' | \
     xargs -i sed -i -e '0,/python/s/python/python3/' {}

* Use /usr/bin/env python3 to be virtualenv friendly</content>
</entry>
<entry>
<title>Update tooling for GitHub-based new releases (#223)</title>
<updated>2020-02-20T17:11:04+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-02-20T17:11:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=4ad5c5d058cc9501ef2f294cb6430d9ffe372e7d'/>
<id>urn:sha1:4ad5c5d058cc9501ef2f294cb6430d9ffe372e7d</id>
<content type='text'>
* tools/read-version: don't enforce version parity in release branch CI

We have a bootstrapping problem with new releases, currently.  To take
the example of 20.1: the branch that bumps the version fails CI because
there is no 20.1 tag for it to use in read-version.  Previously, this
was solved by creating a tag and pushing it to the cloud-init repo
before the commit landed.  However, we have GitHub branch protection
enabled, so the commit that needs to be tagged is not created until the
pull request lands in master.

This works around this problem by introducing a very specific check: if
we are performing CI for an upstream release branch, we skip the
read-version checking that we know will fail.

* tools/make-tarball: add --version parameter

When using make-tarball as part of a CI build of a new upstream release,
the version it determines is inconsistent with the version that other
tools determine.  Instead of encoding the logic here (as well as in
Python elsewhere), we add a parameter to allow us to set it from outside
the script.

* packages/bddeb: handle missing version_long in new version CI

If we're running in CI for a new upstream release, we have to use
`version` instead of `version_long` (because we don't yet have the tag
required to generate `version_long`).</content>
</entry>
<entry>
<title>tools/read-version: handle errors</title>
<updated>2019-04-23T17:07:39+00:00</updated>
<author>
<name>Chad Miller</name>
<email>millchad@amazon.com</email>
</author>
<published>2019-04-23T17:07:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3fb55ea85139f2d29ce32f124d099419fbd06f60'/>
<id>urn:sha1:3fb55ea85139f2d29ce32f124d099419fbd06f60</id>
<content type='text'>
When the cloned branch was not the canonical upstream and tags were not
available, tox would fail because tools/read-version would fail, and
tragically never print the advice that is in tools/read-version about
how to fix it.

This changes tools/read-version to catch the exception that is elsewhere
explicitly thrown and treat that too as an error it can handle.
</content>
</entry>
<entry>
<title>read-version: enhance error message</title>
<updated>2018-08-31T22:11:49+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>josh.powers@canonical.com</email>
</author>
<published>2018-08-31T22:11:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=8d9d4c8477732c5cc559eb10ddacef4598f93591'/>
<id>urn:sha1:8d9d4c8477732c5cc559eb10ddacef4598f93591</id>
<content type='text'>
The error message when read-vesion is not very useful and does not help
the end-user know how to overcome the issue. This adds a short message
explaining that the user does not have the latest upstream tags and how
to get those tags.
</content>
</entry>
<entry>
<title>tools/read-version: Fix read-version when in a git worktree.</title>
<updated>2018-01-24T15:25:48+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-24T15:25:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=30597f28512fafbe25486df5865b628d859486c6'/>
<id>urn:sha1:30597f28512fafbe25486df5865b628d859486c6</id>
<content type='text'>
read-version --json would report bad data when working in a worktree.
This is just because in a worktree, .git is not a directory, but
rather a metadata file that points to the another path.
  $ git worktree ../mytree
  $ cat ../mytree/.git
  gitdir: /path/to/cloud-init/.git/worktrees/mytree
  $ rm -Rf ../mytree; git worktree prune
</content>
</entry>
<entry>
<title>tools: Give specific --abbrev=8 to "git describe"</title>
<updated>2017-10-05T18:21:00+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-10-05T18:21:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=6eb4dc24fe314ce5c98b05b21988402cda95afce'/>
<id>urn:sha1:6eb4dc24fe314ce5c98b05b21988402cda95afce</id>
<content type='text'>
The tools that use "git describe" were just assuming a consisent
number of characters in the hash.  It seems ubuntu 16.04 would use 7
and later versions use 8.  To avoid that discrepency in developer
environments, set it to 8.
</content>
</entry>
<entry>
<title>build: fix running Make on a branch with tags other than master</title>
<updated>2017-01-23T14:39:01+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-01-20T14:36:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a3376d45c83e90150d8de79a2b31282a7d760bd7'/>
<id>urn:sha1:a3376d45c83e90150d8de79a2b31282a7d760bd7</id>
<content type='text'>
running 'make' on a git branch other than master would fail with
complaint that the tools/read-version reported a different version
than the code.

Change to only consider tags starting with 0-9 in read-version.
</content>
</entry>
<entry>
<title>LICENSE: Allow dual licensing GPL-3 or Apache 2.0</title>
<updated>2016-12-22T22:04:28+00:00</updated>
<author>
<name>Jon Grimm</name>
<email>jon.grimm@canonical.com</email>
</author>
<published>2016-11-22T23:09:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=b2a9f33616c806ae6e052520a8589113308f567c'/>
<id>urn:sha1:b2a9f33616c806ae6e052520a8589113308f567c</id>
<content type='text'>
This has been a recurring ask and we had initially just made the change to
the cloud-init 2.0 codebase.  As the current thinking is we'll just
continue to enhance the current codebase, its desirable to relicense to
match what we'd intended as part of the 2.0 plan here.

- put a brief description of license in LICENSE file
- put full license versions in LICENSE-GPLv3 and LICENSE-Apache2.0
- simplify the per-file header to reference LICENSE
- tox: ignore H102 (Apache License Header check)

Add license header to files that ship.
Reformat headers, make sure everything has vi: at end of file.

Non-shipping files do not need the copyright header,
but at the moment tests/ have it.
</content>
</entry>
<entry>
<title>tools/read-version: update to address change in version</title>
<updated>2016-08-10T17:18:40+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-08-10T17:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=1e85ba042c786e56449642aec59874a9bb059262'/>
<id>urn:sha1:1e85ba042c786e56449642aec59874a9bb059262</id>
<content type='text'>
commit 48ec60ae changed over several tools to use X.Y.Z-XXX-gHASH
but missed tools/read-version.  The end result was that
check_version failed.
</content>
</entry>
<entry>
<title>read-version: do not attempt git-describe if no git.</title>
<updated>2016-08-09T06:59:29+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-08-09T06:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=537477335449c7730633d321905c57f694441eb3'/>
<id>urn:sha1:537477335449c7730633d321905c57f694441eb3</id>
<content type='text'>
Even if there is a .git directory, we can't use git if there
is no git executable in the path.  In that case just fall back
to the cloud-init version.
</content>
</entry>
</feed>
