<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tools/read-version, branch crux</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2018-10-21T20:50:43+00:00</updated>
<entry>
<title>do not check git</title>
<updated>2018-10-21T20:50:43+00:00</updated>
<author>
<name>Kim Hagen</name>
<email>kim.sidney@gmail.com</email>
</author>
<published>2018-10-21T20:50:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=c6596d86435fdb1933a7755de110e8f6e8de6aaf'/>
<id>urn:sha1:c6596d86435fdb1933a7755de110e8f6e8de6aaf</id>
<content type='text'>
</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/marekm72/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/marekm72/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/marekm72/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/marekm72/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/marekm72/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/marekm72/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>
<entry>
<title>For upstream snapshot versions do not modify git-describe output.</title>
<updated>2016-08-08T21:52:24+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-08-08T17:24:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=48ec60ae19c749223cb58dcbdbf0ecb7343f2a31'/>
<id>urn:sha1:48ec60ae19c749223cb58dcbdbf0ecb7343f2a31</id>
<content type='text'>
For upstream version directly use the output of git-describe
(X.Y.Z-number.gHASH) rather than rather than changing it to
(X.Y.Z+number.gHASH).

The rpm version does not allow '-' in Version, so we create and use
rpm_upstream_version in the rpm spec file.  That is of format:
X.Y.Z+number.gHASH
</content>
</entry>
<entry>
<title>drop modification of version during make-tarball, tools changes.</title>
<updated>2016-08-05T20:53:53+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-08-05T19:51:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=42bed116b411eb25ebd8368b2b4ed6c56ffd85e7'/>
<id>urn:sha1:42bed116b411eb25ebd8368b2b4ed6c56ffd85e7</id>
<content type='text'>
Modification of the tarball became problematic, as it meant that
any tool extracting source would find the orig source tarball different.
I found this unusable when trying to use 'gbp buildpackage'.

Other changes here are to better support using python3 or python2
for the build.  Makefile will try to call the right python version
and can be told which python to use.

read-version: by adding 'tiny_p' and avoiding the import of
cloudinit.util, we need less dependencies to run this.
</content>
</entry>
<entry>
<title>adjust tools and version information.</title>
<updated>2016-08-05T19:00:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2016-08-05T15:56:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=10f82bd474c5bc91b330beccd883da06b0014a99'/>
<id>urn:sha1:10f82bd474c5bc91b330beccd883da06b0014a99</id>
<content type='text'>
upstream snapshots are versioned in the format 'X.Y.Z+&lt;distance&gt;.g&lt;commit&gt;'
where X.Y.Z are major, minor, and micro.  Distance is number of commits
since last annotated tag, and commit is the git commit.

bddeb and brpm will now create and use the "upstream version" like above.

Things changed here:
 - tools/make-tarball
   update cloudinit/version.py to contain the full version
   support --output
   support '--long' to always create the long format version string.

 - bddeb:
   - use quilt debian source format
   - use read-version and long version in changelog.

 - brpm:
   - change to use read-version and upstream long version in the spec.
   - flake8 changes

 - tools/read-version
   - read version from git or from cloudinit/version.
   - provide --json output with more nicely formed data.
</content>
</entry>
</feed>
