~sircmpwn/hare-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH hare] Fix duplicate task when building object files

Details
Message ID
<20230819152008.42115-1-dom@inik.dev>
DKIM signature
missing
Download raw message
Patch: +1 -2
When using `hare build -c` the same task will be appended to the plan
list twice, causing a crash when using the new malloc.

Signed-off-by: Dominik Hagowski <dom@inik.dev>
---
 cmd/hare/subcmds.ha | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha
index 94ae837d..29788733 100644
--- a/cmd/hare/subcmds.ha
+++ b/cmd/hare/subcmds.ha
@@ -175,9 +175,8 @@ fn build(cmd: *getopt::command) void = {
	case goal::EXE =>
		sched_hare_exe(&plan, ver, output, depends...);
	case goal::OBJ =>
		let task = sched_hare_object(&plan, ver,
		sched_hare_object(&plan, ver,
			namespace, output, depends...);
		append(plan.scheduled, task);
	};
	match (plan_execute(&plan, verbose)) {
	case void => void;
-- 
2.41.0

[hare/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CUWL7HV15X82.2E4HRKTU33BQ3@cirno2>
In-Reply-To
<20230819152008.42115-1-dom@inik.dev> (view parent)
DKIM signature
missing
Download raw message
hare/patches: SUCCESS in 2m0s

[Fix duplicate task when building object files][0] from [Dominik Hagowski][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/43768
[1]: dom@inik.dev

✓ #1043809 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/1043809
✓ #1043808 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/1043808
Details
Message ID
<CUXVSK5J208U.310EMFMLO50ZI@monch>
In-Reply-To
<20230819152008.42115-1-dom@inik.dev> (view parent)
DKIM signature
missing
Download raw message
thanks!

to git@git.sr.ht:~sircmpwn/hare
  83fcdf51..37a1e42a  master -> master
Reply to thread Export thread (mbox)