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

fix: wrong placeholder replaced in windows binary #86

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

faulpeltz
Copy link

When replacing PAYLOAD_POSITION and similar placeholders, the producer always replaces the first occurence of the placeholder, but on the current Windows binaries the placeholder which needs to be replaced is the correct one (the first one is source text)

This causes the Windows binary to crash on startup. Fixes #85

lib/producer.ts Outdated Show resolved Hide resolved
@robertsLando robertsLando enabled auto-merge (squash) September 4, 2024 13:05
@robertsLando
Copy link
Member

@faulpeltz Thanks a lot for this!

auto-merge was automatically disabled September 4, 2024 13:17

Head branch was pushed to by a user without write access

@faulpeltz
Copy link
Author

It seems my change broke node 16/18 somehow 😠

@robertsLando
Copy link
Member

@faulpeltz could you also open a PR on pkg-fetch with the required fixes to the patch for nodejs 20.17?

@blackholegalaxy
Copy link

Do you plan merging this soon? It's a game changer :) Thanks for your work to you both.

@robertsLando
Copy link
Member

@blackholegalaxy Even if I merge this we still need to wait for yao-pkg/pkg-fetch#40 to land. Otherwise no macos support :( ATM I have been able to make everything work except macos arm 64

@robertsLando robertsLando merged commit d9b28c3 into yao-pkg:main Sep 5, 2024
6 checks passed
@datagutt
Copy link

datagutt commented Sep 5, 2024

Just dropping by to say this is amazing work

@blackholegalaxy
Copy link

blackholegalaxy commented Sep 5, 2024

@blackholegalaxy Even if I merge this we still need to wait for yao-pkg/pkg-fetch#40 to land. Otherwise no macos support :( ATM I have been able to make everything work except macos arm 64

we could still rebuild binaries when executing pkg locally I guess in the meantime

@robertsLando
Copy link
Member

Let's see how this goes: https://github.com/yao-pkg/pkg-fetch/actions/runs/10722955285

If still not working I could temporary disable Mac arm64 build and make a new release with what is working right now giving that pkg is lot node versions behind latest

@robertsLando
Copy link
Member

Just a quick update here. I finally managed to make all build working and new release is coming with latest nodejs 18 and 20.17.0 support 🎉

Just need to wait for this to finish now

Please consider sending some support here: https://github.com/sponsors/robertsLando 🙏🏼 ❤️

Vylpes pushed a commit to Vylpes/random-bunny that referenced this pull request Sep 10, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@yao-pkg/pkg](https://github.com/yao-pkg/pkg) | devDependencies | minor | [`5.12.0` -> `5.13.0`](https://renovatebot.com/diffs/npm/@yao-pkg%2fpkg/5.12.0/5.13.0) |

---

### Release Notes

<details>
<summary>yao-pkg/pkg (@&#8203;yao-pkg/pkg)</summary>

### [`v5.13.0`](https://github.com/yao-pkg/pkg/blob/HEAD/CHANGELOG.md#5130-2024-09-06)

[Compare Source](yao-pkg/pkg@v5.12.1...v5.13.0)

##### Features

-   bump pkg-fetch@3.5.10 with node 20.17.0 and 18.20.4 support ([dda9032](yao-pkg/pkg@dda9032))

##### Bug Fixes

-   wrong placeholder replaced in windows binary ([#&#8203;86](yao-pkg/pkg#86)) ([d9b28c3](yao-pkg/pkg@d9b28c3))

### [`v5.12.1`](https://github.com/yao-pkg/pkg/blob/HEAD/CHANGELOG.md#5121-2024-08-14)

[Compare Source](yao-pkg/pkg@v5.12.0...v5.12.1)

##### Bug Fixes

-   remove `is-core-module` dependency ([#&#8203;77](yao-pkg/pkg#77)) ([2f27414](yao-pkg/pkg@2f27414))
-   run prebuild-install only if actually used by the package ([#&#8203;83](yao-pkg/pkg#83)) ([2a046e4](yao-pkg/pkg@2a046e4))

##### Chores

-   drop package-lock file uploaded by error ([ba407ef](yao-pkg/pkg@ba407ef))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: https://git.vylpes.xyz/RabbitLabs/random-bunny/pulls/216
Reviewed-by: Vylpes <ethan@vylpes.com>
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
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.

Windows binaries not working starting from pkg 5.13.0
4 participants