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

error C2099: initializer is not a constant #1208

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

LqdBcnAtWork
Copy link
Contributor

I noticed the Prebuild on windows 2019 for v11.1.0 was failing.

I believe the issue is caused from the inline multiplication.

Seems like Windows is picky.

@LqdBcnAtWork LqdBcnAtWork requested review from JoshuaWise and a team as code owners June 24, 2024 12:49
Copy link
Member

@mceachen mceachen left a comment

Choose a reason for hiding this comment

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

Thanks!

@mceachen mceachen merged commit 8b74050 into WiseLibs:master Jun 27, 2024
17 checks passed
patricebender pushed a commit to cap-js/cds-dbs that referenced this pull request Jun 27, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [better-sqlite3](https://togithub.com/WiseLibs/better-sqlite3) |
[`11.0.0` ->
`11.1.1`](https://renovatebot.com/diffs/npm/better-sqlite3/11.0.0/11.1.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/better-sqlite3/11.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/better-sqlite3/11.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/better-sqlite3/11.0.0/11.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/better-sqlite3/11.0.0/11.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>WiseLibs/better-sqlite3 (better-sqlite3)</summary>

###
[`v11.1.1`](https://togithub.com/WiseLibs/better-sqlite3/releases/tag/v11.1.1)

[Compare
Source](https://togithub.com/WiseLibs/better-sqlite3/compare/v11.0.0...v11.1.1)

#### What's Changed

- Fix macOS x64 builds by
[@&#8203;m4heshd](https://togithub.com/m4heshd) in
[WiseLibs/better-sqlite3#1210
- error C2099: initializer is not a constant by
[@&#8203;LqdBcnAtWork](https://togithub.com/LqdBcnAtWork) in
[WiseLibs/better-sqlite3#1208

#### New Contributors

- [@&#8203;LqdBcnAtWork](https://togithub.com/LqdBcnAtWork) made their
first contribution in
[WiseLibs/better-sqlite3#1208

**Full Changelog**:
WiseLibs/better-sqlite3@v11.1.0...v11.1.1

</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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/cap-js/cds-dbs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@kevinlul
Copy link

kevinlul commented Jul 1, 2024

If you need to patch the vendored-in upstream code, won't this be lost when the next source code import happens? This is also the first time I see the upstream code being directly modified.

@LqdBcnAtWork
Copy link
Contributor Author

I have no idea. I barely understand how to use git.

I suppose I could go find sqlite3's source and see if the same issue exists there. But I dunno what that would require.

Good call though

@mceachen
Copy link
Member

mceachen commented Jul 1, 2024

@kevinlul this patch is in the upstream code (just not in the currently released version), so we're all good. Here's the commit to trunk:

https://www.sqlite.org/src/info/6c103aee6f146869

And here's the discussion:

https://sqlite.org/forum/forumpost/4feb1685cced0a8e

mceachen added a commit to mceachen/better-sqlite3 that referenced this pull request Aug 13, 2024
@mceachen mceachen mentioned this pull request Aug 13, 2024
JoshuaWise pushed a commit that referenced this pull request Aug 29, 2024
* Add new patch infra. See #1208 and #1238

* add patches to CODEOWNERS

* revert CODEOWNERS addition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants