<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-build.git/scripts/build-vyos-image, branch T7032</title>
<subtitle>VyOS image build scripts (mirror of https://github.com/vyos/vyos-build.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-build.git/atom?h=T7032</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-build.git/atom?h=T7032'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/'/>
<updated>2024-03-23T21:02:44+00:00</updated>
<entry>
<title>build scripts: T3664: move image build scripts to a dedicated directory</title>
<updated>2024-03-23T21:02:44+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@vyos.io</email>
</author>
<published>2024-03-23T20:50:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=750819bfec5335566dfc48de1ab6dbbc869068a3'/>
<id>urn:sha1:750819bfec5335566dfc48de1ab6dbbc869068a3</id>
<content type='text'>
to avoid a mix of image build scripts and ancilliary scripts in the same directory
</content>
</entry>
<entry>
<title>build script: T3664: fix handling of missing or malformed flavor files</title>
<updated>2024-03-21T13:58:48+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-03-21T13:58:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=65b0321a8b92a4fcbb211caeec31aaa82a3a490c'/>
<id>urn:sha1:65b0321a8b92a4fcbb211caeec31aaa82a3a490c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #526 from sfinke0/fix-tagged-build</title>
<updated>2024-03-16T08:45:23+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-16T08:45:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=50bdf2367f5a2ff2cd719ed4ce58189536bac86c'/>
<id>urn:sha1:50bdf2367f5a2ff2cd719ed4ce58189536bac86c</id>
<content type='text'>
T6115: Fix tagged builds from detached Git HEAD</content>
</entry>
<entry>
<title>T6115: fix failing builds from detached HEAD (e.g. git tags)</title>
<updated>2024-03-14T12:33:58+00:00</updated>
<author>
<name>sfinke0</name>
<email>sfinke@pewpew.network</email>
</author>
<published>2024-03-10T21:15:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=3494ab3e0a50ed701a4b127e51b919c2ceb61bc3'/>
<id>urn:sha1:3494ab3e0a50ed701a4b127e51b919c2ceb61bc3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>build: T1449: add default_config field support in flavor files</title>
<updated>2024-03-13T17:35:01+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-03-13T17:35:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=11f4d356f6743fde6da8d5dfe0f924f26b46d6fd'/>
<id>urn:sha1:11f4d356f6743fde6da8d5dfe0f924f26b46d6fd</id>
<content type='text'>
to allow people to easily include a custom default config
</content>
</entry>
<entry>
<title>docker, build: T6119: use python3-tomli instead of python3-toml</title>
<updated>2024-03-12T20:59:46+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-03-12T20:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=bbddf9d0a32e60717871dfe665cc4d443117dcfe'/>
<id>urn:sha1:bbddf9d0a32e60717871dfe665cc4d443117dcfe</id>
<content type='text'>
for a compliant implementation ot TOML
</content>
</entry>
<entry>
<title>T6077: add bugtrcker, documentation and new URL to version file</title>
<updated>2024-03-01T20:44:53+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-01T20:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=7b89f74c316c278ff6af73e75f357139d56243da'/>
<id>urn:sha1:7b89f74c316c278ff6af73e75f357139d56243da</id>
<content type='text'>
Use single source for project related URLs that will later be consumed by the
MOTD template used.
</content>
</entry>
<entry>
<title>T3664: remove leading whitespaces from generated /usr/lib/os-release</title>
<updated>2024-03-01T20:43:55+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-03-01T20:41:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=195c13022de0b022e054347f0170fb536f4e9b9b'/>
<id>urn:sha1:195c13022de0b022e054347f0170fb536f4e9b9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T6064: add build error if branch information from Git repository is missing</title>
<updated>2024-02-25T07:49:11+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-02-25T07:41:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=7c27657c79046dac8ae509a4eacb1a3a152e2d23'/>
<id>urn:sha1:7c27657c79046dac8ae509a4eacb1a3a152e2d23</id>
<content type='text'>
This was discussed in slack, where a user was missing the Git commit ID in his
custom build

Reason is/was:
  git clone --single-branch -b 1.4.0-epa1 https://github.com/vyos/vyos-build

Checks out the 1.4.0-epa1 tag as HEAD and does not clone any branch information.
This results in:

&gt;&gt;&gt; import git
&gt;&gt;&gt; repo = git.Repo('.')
&gt;&gt;&gt; repo.head.object.hexsha[:14]
'bcac2eb1f9b49c'
&gt;&gt;&gt; git_branch = repo.active_branch.name
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/python3/dist-packages/git/repo/base.py", line 881, in active_branch
    return self.head.reference
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/git/refs/symbolic.py", line 311, in _get_reference
    raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha))
TypeError: HEAD is a detached symbolic reference as it points to 'bcac2eb1f9b49cc15ebda65838e5465543dbb9c6'
during the build. The exception handler resets the branch and commit name to an empty string: https://github.com/vyos/vyos-build/blob/a3e60a00b400a1bad8609d5ce1abb0bb7abed7bc/scripts/build-vyos-image#L281-L296

This now adds a proper error message during build so it fails early.

(07:46) vyos_bld 08278c5a1172:/vyos/vyos-build # isobuild -test
Building custom VyOS version: 1.5-test-202402250746
I: Checking if packages required for VyOS image build are installed
build/config
Could not retrieve information from git: HEAD is a detached symbolic reference as it points to '39612f541e55bea19868f50f16d7a6c6e0034ed2'
</content>
</entry>
<entry>
<title>build: T3664: fix the chroot includes path</title>
<updated>2024-02-19T13:28:07+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-02-19T13:28:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-build.git/commit/?id=a45a1b3927e305707b35ead92b7483d53d0551ad'/>
<id>urn:sha1:a45a1b3927e305707b35ead92b7483d53d0551ad</id>
<content type='text'>
to account for the current working dir
</content>
</entry>
</feed>
