Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinygo: enable cmd/core/init #3062

Merged
merged 1 commit into from
Aug 9, 2024
Merged

tinygo: enable cmd/core/init #3062

merged 1 commit into from
Aug 9, 2024

Conversation

leongross
Copy link
Member

@leongross leongross commented Aug 6, 2024

Add conditional compilation to exclude any use of network packages for now. Further, klauspost/zstd is used, so to build this cmdlet with tinygo requires to set the build tag noasm as well. Since this package uses unix.Sync the latest tinygo release cannot yet be used but instead, a dev build is required.

tinygo build -tags noasm .

@rminnich

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.88%. Comparing base (b7dc420) to head (3173609).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3062      +/-   ##
==========================================
- Coverage   59.88%   59.88%   -0.01%     
==========================================
  Files         580      580              
  Lines       38186    38186              
==========================================
- Hits        22867    22866       -1     
- Misses      15319    15320       +1     
Flag Coverage Δ
.-amd64 90.69% <ø> (ø)
cmds/...-amd64 52.54% <ø> (-0.01%) ⬇️
integration/generic-tests/...-amd64 20.19% <ø> (ø)
integration/generic-tests/...-arm 11.69% <ø> (ø)
integration/generic-tests/...-arm64 24.46% <ø> (ø)
integration/gotests/...-amd64 62.73% <ø> (ø)
integration/gotests/...-arm 63.64% <ø> (-0.01%) ⬇️
integration/gotests/...-arm64 63.80% <ø> (-0.11%) ⬇️
pkg/...-amd64 59.49% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
everything 65.10% <ø> (-0.01%) ⬇️
cmds/exp 34.03% <ø> (ø)

Copy link
Contributor

@archie2x archie2x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you can get this to build, it's a big step forward.

@rminnich rminnich added the Awaiting author Waiting for new changes or feedback for author. label Aug 7, 2024
@leongross
Copy link
Member Author

@rminnich re-running the ci seems to have fixed that.

@leongross
Copy link
Member Author

@binjip978

Add conditional compilation to exclude any use of network packages for
now. Further, `klauspost/zstd` is used, so to build this cmdlet with
tinygo requires to set the build tag `noasm` as well:

```
tinygo build -tags noasm .
```

Signed-off-by: leongross <[email protected]>
@rminnich rminnich merged commit f0c78d0 into u-root:main Aug 9, 2024
37 checks passed
@leongross leongross deleted the tinygo/init branch August 9, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting author Waiting for new changes or feedback for author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants