Skip to content

Commit

Permalink
fix: update os specific osmain
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 29, 2024
1 parent 995857e commit 0188714
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/monorepo-main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: main
name: monorepo-main

concurrency:
group: main-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion happy_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

package happy

func osmain() {}
func osmain(ch chan struct{}) {}
8 changes: 6 additions & 2 deletions happy_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

package happy

func osmain() {
select {}
func osmain(ch chan struct{}) {
if ch != nil {
<-ch
} else {
select {}
}
}

0 comments on commit 0188714

Please sign in to comment.