<feed xmlns='http://www.w3.org/2005/Atom'>
<title>craft, branch main</title>
<subtitle>Build automation tool for Linux</subtitle>
<id>https://cgit.xengineering.eu/craft/atom</id>
<link rel='self' href='https://cgit.xengineering.eu/craft/atom'/>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/'/>
<updated>2026-11-11T21:00:53Z</updated>
<entry>
<title>Introduce ~/.local/share/craft/images</title>
<updated>2026-11-11T21:00:53Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-11T21:00:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=60b321ae78b2d745e65488439a51d8545667c56c'/>
<id>urn:sha1:60b321ae78b2d745e65488439a51d8545667c56c</id>
<content type='text'>
This allows placing VM images in a central per-user directory.
</content>
</entry>
<entry>
<title>Use filepath.Join instead of plain `/` separators</title>
<updated>2026-11-11T20:57:46Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-11T20:57:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=9afe195c980fb94f34b72675649aa85456ff3a80'/>
<id>urn:sha1:9afe195c980fb94f34b72675649aa85456ff3a80</id>
<content type='text'>
This is recommended to avoid cross-platform issues.
</content>
</entry>
<entry>
<title>Implement artefact download</title>
<updated>2026-11-11T20:26:41Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-11T20:26:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=c9584f4776bc3e3f86154140d5afb305c4c7e901'/>
<id>urn:sha1:c9584f4776bc3e3f86154140d5afb305c4c7e901</id>
<content type='text'>
The artefacts of the pipeline job are downloaded by creating a tar
archive inside the VM, pipe them to `stdout` and receive them on the
host side writing it to a temporary directory.
</content>
</entry>
<entry>
<title>Always add `err` variable to error log output</title>
<updated>2026-11-11T20:05:51Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-11T20:05:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=217db89f9963d864bdc1dd8233052c33e71f4de7'/>
<id>urn:sha1:217db89f9963d864bdc1dd8233052c33e71f4de7</id>
<content type='text'>
This makes easier to debug issues.
</content>
</entry>
<entry>
<title>Add job inspection via SSH</title>
<updated>2026-11-11T05:57:08Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-11T05:55:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=aa429f6739824b5c97d652e27dcfc3da95f652ad'/>
<id>urn:sha1:aa429f6739824b5c97d652e27dcfc3da95f652ad</id>
<content type='text'>
In case of failed pipelines it is very useful to be able to inspect the
VM via SSH. This commit waits until CTRL-C to stop the VM and logs a SSH
command to log into the VM for inspection.
</content>
</entry>
<entry>
<title>Rework shutdown</title>
<updated>2026-11-11T05:37:09Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-10T05:49:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=cd9450f64c5b8e526411d5c570c093bd42fae627'/>
<id>urn:sha1:cd9450f64c5b8e526411d5c570c093bd42fae627</id>
<content type='text'>
This makes sure the `defer` statements are executed. The former usage of
`os.Exit(1)` did not execute them.
</content>
</entry>
<entry>
<title>Rework logging</title>
<updated>2026-11-10T05:49:33Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-10T05:36:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=62caf1fab111c21cdadfde6fc28c2c7466fa68cc'/>
<id>urn:sha1:62caf1fab111c21cdadfde6fc28c2c7466fa68cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Split code into multiple files</title>
<updated>2026-11-06T05:47:36Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-06T05:47:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=1652d82322c2ace9f85edb3d9f3c871e4f7402d8'/>
<id>urn:sha1:1652d82322c2ace9f85edb3d9f3c871e4f7402d8</id>
<content type='text'>
This allows to make the split early which is hard to track in Git
history and then add a lot of code to these files.
</content>
</entry>
<entry>
<title>Add Go module `xengineering.eu/craft`</title>
<updated>2026-11-06T05:34:17Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-06T05:34:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=b224c110bb3221de06b2ba0cd022bd4529935a0b'/>
<id>urn:sha1:b224c110bb3221de06b2ba0cd022bd4529935a0b</id>
<content type='text'>
This allows to add dependencies and use multiple files easily.
</content>
</entry>
<entry>
<title>.gitignore: Add `craft`</title>
<updated>2026-11-06T05:31:44Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-06T05:31:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=b7ecddb06a5176ac6072421640bb00261361e34b'/>
<id>urn:sha1:b7ecddb06a5176ac6072421640bb00261361e34b</id>
<content type='text'>
The executable should not be committed.
</content>
</entry>
<entry>
<title>Remove configurability</title>
<updated>2026-11-06T05:31:30Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-06T05:28:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=22f989be91b672bf1ff5687fb9ad358d12ba1d92'/>
<id>urn:sha1:22f989be91b672bf1ff5687fb9ad358d12ba1d92</id>
<content type='text'>
This removes the command line argument interface to make it trivial to
run the given code.

Later a proper command line interface will be added.
</content>
</entry>
<entry>
<title>Do not log ssh warnings</title>
<updated>2026-11-05T05:55:00Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-05T05:55:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=4f1e0351527a4077837bdb8fd6f280a236bca950'/>
<id>urn:sha1:4f1e0351527a4077837bdb8fd6f280a236bca950</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch from `log` to `log/slog` package</title>
<updated>2026-11-05T05:53:50Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-05T05:53:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=147ea7372f74ad2d1f25a285951289c2c5659b58'/>
<id>urn:sha1:147ea7372f74ad2d1f25a285951289c2c5659b58</id>
<content type='text'>
This new Go log package allows to set log levels and structure log
messages. At least log levels are very useful in the context of this
project.
</content>
</entry>
<entry>
<title>Re-introduce log timestamps</title>
<updated>2026-11-02T19:42:55Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2026-11-02T19:42:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=028dce260644bb5cc8286a402810c6237b72d78f'/>
<id>urn:sha1:028dce260644bb5cc8286a402810c6237b72d78f</id>
<content type='text'>
The minimal viable product for craft should be a local command line
tool. For this the embedded log timestamps are useful.
</content>
</entry>
<entry>
<title>Fix syslinux installation</title>
<updated>2025-04-21T09:24:41Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2025-04-21T09:24:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=8f1e44de648e2c3a0a7bb6aa827dacf5ee563478'/>
<id>urn:sha1:8f1e44de648e2c3a0a7bb6aa827dacf5ee563478</id>
<content type='text'>
The `syslinux.cfg` file needs to be copied explicitly. This likely
changed upstream. Otherwise the `sed` call fails and the system is not
bootable.
</content>
</entry>
<entry>
<title>Remove duplicated network config</title>
<updated>2024-07-30T15:46:29Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-30T15:46:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=86c9fcc747374e29a9b3af7f2742e28921bfba52'/>
<id>urn:sha1:86c9fcc747374e29a9b3af7f2742e28921bfba52</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch to execution in QEMU virtual machine</title>
<updated>2024-07-29T18:20:22Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-28T17:17:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=c90f9c8d67bf178878f5b0e6328f7c38808b5013'/>
<id>urn:sha1:c90f9c8d67bf178878f5b0e6328f7c38808b5013</id>
<content type='text'>
This ensures that the build environment is exactly the same. Furthermore
security risks for the host are minimized.
</content>
</entry>
<entry>
<title>Enable internet access for VM</title>
<updated>2024-07-29T18:05:41Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-29T18:04:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=9ca8bd760a33f3758a044299357f0732617b936b'/>
<id>urn:sha1:9ca8bd760a33f3758a044299357f0732617b936b</id>
<content type='text'>
It is planned that the sources are first directly downloaded into the
VM. Later they will be cloned on the host, transmitted via rsync to the
VM and the artifacts downloaded from the VM to make the build process
completely offline for reproducibility.
</content>
</entry>
<entry>
<title>Re-introduce password setting in VM preparation</title>
<updated>2024-07-28T17:14:18Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-28T17:14:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=5bea4c50e7afd39ae64bb2b80c49e4a81650be1b'/>
<id>urn:sha1:5bea4c50e7afd39ae64bb2b80c49e4a81650be1b</id>
<content type='text'>
This is useful to log into the VM manually e.g. for package updates.
</content>
</entry>
<entry>
<title>Wait for VM to boot</title>
<updated>2024-07-28T16:37:11Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-28T11:18:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=419fe88d38145973ef9aa387e877be402c5e7e28'/>
<id>urn:sha1:419fe88d38145973ef9aa387e877be402c5e7e28</id>
<content type='text'>
This waits for a little delay and then tries to run `true` via SSH on
the virtual machine. If this does not work for a maximum amount of
attempts a fatal error is raised and an appropriate log message is
written.
</content>
</entry>
<entry>
<title>Switch to SSH keys instead of passwords</title>
<updated>2024-07-28T11:08:26Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-28T11:08:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=1b78d4af89791791b68b51a72cbcf0775038108d'/>
<id>urn:sha1:1b78d4af89791791b68b51a72cbcf0775038108d</id>
<content type='text'>
This is better for automation and security (which of course is only a
thing if the default key is not used).
</content>
</entry>
<entry>
<title>Move from busybox ash to sh</title>
<updated>2024-07-21T15:38:46Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T15:38:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=e08829ca3870a3a802ac756b9194b1217da30d0f'/>
<id>urn:sha1:e08829ca3870a3a802ac756b9194b1217da30d0f</id>
<content type='text'>
`busybox` is not installed inside the current VM and there is no strict
reason to use it. `sh` instead should be present on any targeted system.
</content>
</entry>
<entry>
<title>Startup VM parallel to craft execution on host</title>
<updated>2024-07-21T15:34:56Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T15:20:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=1b4affb524536ca904f09b0de65fddad3be2a75b'/>
<id>urn:sha1:1b4affb524536ca904f09b0de65fddad3be2a75b</id>
<content type='text'>
This prepares moving the workbench to the virtual machine. It
furthermore adds the following command line arguments:

- image
- port

See `craft --help` or the init() function for details.
</content>
</entry>
<entry>
<title>Remove craft.sh concept / add --task argument</title>
<updated>2024-07-21T12:58:20Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T12:58:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=0db0ddcc421a5c2a85ac614d1f62e3e3374994a2'/>
<id>urn:sha1:0db0ddcc421a5c2a85ac614d1f62e3e3374994a2</id>
<content type='text'>
There will likely be a way how a source repository can specify the
default shell commands to build itself for craft. If this will be a pure
shell file, YAML, JSON or something else is not clear for now.

This commit removes the lookup of the craft.sh file and instead adds the
--task command line argument to specify that script code.

This might only be a temporary solution but is the best fit for now.
</content>
</entry>
<entry>
<title>Add missing docs for -repo and -commit</title>
<updated>2024-07-21T12:48:19Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T12:48:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=1259c086a52f12a0a40650f2389d3401d9274144'/>
<id>urn:sha1:1259c086a52f12a0a40650f2389d3401d9274144</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Switch order of startup and exit log message</title>
<updated>2024-07-21T12:40:47Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T12:40:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=8c95d2ea4b793d1f1eb4ffa85fa621318b00e8e3'/>
<id>urn:sha1:8c95d2ea4b793d1f1eb4ffa85fa621318b00e8e3</id>
<content type='text'>
While the exit log message is prefixed with `defer` and thus called at
the end of the main function it is in theory possible that the startup
log message fails. This would result in a exit message without startup
message which is confusing.

Furthermore it is not intuitive while reading the code to see the exit
message first.
</content>
</entry>
<entry>
<title>Document how to log into the guest VM with SSH</title>
<updated>2024-07-21T12:26:00Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T12:26:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=c1adc25b1d4e0190ba1e38c9f4ea468770f1bb22'/>
<id>urn:sha1:c1adc25b1d4e0190ba1e38c9f4ea468770f1bb22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Document how to run the VM for builds</title>
<updated>2024-07-21T12:19:26Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-21T12:19:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=2e59b2390e27df6f5be576db8a56e2f14f269bcc'/>
<id>urn:sha1:2e59b2390e27df6f5be576db8a56e2f14f269bcc</id>
<content type='text'>
This includes:

- read-only / snapshot mode
- port forwarding guest 22 to host 9999
- internet access
- no visual display, serial only
</content>
</entry>
<entry>
<title>Add missing git package to install list</title>
<updated>2024-07-20T17:25:42Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-20T17:25:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=f90cd583331d4637eecec76b464298aee5f15270'/>
<id>urn:sha1:f90cd583331d4637eecec76b464298aee5f15270</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable SSH daemon in guest VM and allow root login</title>
<updated>2024-07-20T17:17:10Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-07-20T17:17:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/craft/commit/?id=c556a9aa3e1714ba1e414e6135ab4c1a80605996'/>
<id>urn:sha1:c556a9aa3e1714ba1e414e6135ab4c1a80605996</id>
<content type='text'>
The guest VM should be accessible via SSH.
</content>
</entry>
</feed>
