Skip to content

Conversation

@sipraga
Copy link
Contributor

@sipraga sipraga commented Sep 30, 2025

While tags are correctly stored and loaded via useries files, the same is not entirely the case for utags and umerges:

  1. utags are correctly annotated with '# umpf-flags: flag=val'. But when running a build command from such a utag, the flag is not parsed. Add the appropriate build namespace parser function.

  2. Flags are correctly parsed from umerges, but only if they are annotated correctly via git-notes. An incorrect bashism assumes the flags are stored in a file as opposed to a variable, breaking the annotation. Fix it.

With these changes, tags are correctly preserved between a series of commands like: git checkout ; umpf build; umpf merge; umpf tag.

While tags are correctly stored and loaded via useries files, the same
is not entirely the case for utags and umerges:

1. utags are correctly annotated with '# umpf-flags: flag=val'. But when
   running a build command from such a utag, the flag is not parsed. Add
   the appropriate build namespace parser function.

2. Flags are correctly parsed from umerges, but only if they are
   annotated correctly via git-notes. An incorrect bashism assumes the
   flags are stored in a file as opposed to a variable, breaking the
   annotation. Fix it.

With these changes, tags are correctly preserved between a series of
commands like: git checkout <tag>; umpf build; umpf merge; umpf tag.

Signed-off-by: Alvin Šipraga <[email protected]>
michaelolbrich added a commit to michaelolbrich/umpf that referenced this pull request Oct 17, 2025
The flags are never stored in a file. So creating the umpf-build-flags
note from a file is a noop and the flags are lost.

Instead, handle flags like the 'relative'. Set the FLAGS variable when
flags are found and use that to create the note.

This is a modified version of pengutronix#60 from Alvin Šipraga <[email protected]>.

Signed-off-by: Michael Olbrich <[email protected]>
@michaelolbrich
Copy link
Member

Right. This is technically correct, but I want so solve it differently. The flags work mostly the same as relative so the code should look the same and we handle that a bit differently.

Also, while testing this stuff I noticed that umpf show for an umerge is broken as well when it comes to flags.
So I've created #61 that fixes both of the problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants