~sircmpwn/builds.sr.ht#315: 
Follow symlinks in .builds/ directory

It would be nice if symlinks in the .builds/ directory were followed, so that they trigger builds just the same as regular files.

My use case for this is a project with multiple components, and multiple manifests for each component, so the files are laid out like so:

.builds/
  foo.yml -> ../builds/foo/primary.yml
  bar.yml -> ../builds/bar/primary.yml
builds/
  foo/
    primary.yml
    secondary.yml
  bar/
    primary.yml
    secondary.yml

This way I can keep all build manifests together, and have some subset of them run automatically when commits are pushed.

Currently, this setup throws the following error. It looks like builds.sr.ht isn't dereferencing the symlink, and is trying to parse the link target as YAML instead:

$ git push origin test
Total 8 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Error submitting build job: bar.yml: yaml: unmarshal errors:
remote:   line 1: cannot unmarshal !!str `../buil...` into main.Manifest
To git.sr.ht:~evhan/example
 * [new branch]      test -> test
Status
RESOLVED INVALID
Submitter
~evhan
Assigned to
No-one
Submitted
7 months ago
Updated
7 months ago
Labels
No labels applied.

~sircmpwn REPORTED INVALID 7 months ago

Do not file bugs before bringing it up on sr.ht-discuss, please.

Register here or Log in to comment, or comment via email.