Skip to content

fix(pkg/imagefs): add timespec declaration for 32-bit platforms #27

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

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

johnstcn
Copy link
Member

https://github.com/coder/envbuilder/actions/runs/10631748586 began failing on 32-bit ARM platforms due to differences in the definition of a sycall.Timespec.

@johnstcn johnstcn self-assigned this Aug 30, 2024
@johnstcn johnstcn requested a review from mafredri August 30, 2024 13:52
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Nice find!

@johnstcn johnstcn merged commit f307586 into main Aug 30, 2024
9 checks passed
johnstcn added a commit to coder/envbuilder that referenced this pull request Aug 30, 2024
)

func timespec(t time.Time) syscall.Timespec {
return syscall.Timespec{Sec: int32(t.Unix()), Nsec: int32(t.Nanosecond())}
Copy link
Member Author

Choose a reason for hiding this comment

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

this is a problem for 2038 🙃

@mafredri mafredri deleted the cj/timespec-32bit branch September 25, 2024 12:35
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