embedded-postgres on Apple Silicon (M1) issue
See original GitHub issueHi there,
thanks for the great work in the first place, we were using embedded Postgres for a while now.
Now I switched to a MacBook Pro with the new M1 SoC which has arm64 architecture.
I debugged DefaultPostgresBinaryResolver#getPgBinary and the line
Resource resource = findPgBinary(normalize(format("postgres-%s-%s.txz", system, architecture)));
does not find any binary because it is searching for postgres-darwin-arm_64.txzwhich I didn’t find in https://mvnrepository.com/artifact/io.zonky.test.postgres
I assume there will be no release of Postgres for Darwin arm64 soon so is there a way to load the Darwin-amd64 embedded Postgres?
Dependencies we use:
compile("io.zonky.test:embedded-database-spring-test:1.6.1")
dependencyManagement {
imports {
mavenBom 'io.zonky.test.postgres:embedded-postgres-binaries-bom:9.6.16'
}
}
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:23
Top Results From Across the Web
embedded-postgres on Apple Silicon (M1) issue - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >Embedded libraries with Mac on the M1 chip - Auto1 Tech Blog
Embedded-postgres problems. Problem. When I've run first time integration-tests that using embedded-postgres library, I've got next exception in stack ...
Read more >Can't install Postgres on MacBook M1, Mac OS Monterey 12.4
As you can see on brew.sh when searching for formula postgresql it has binaries (Bottle) supporting: Apple Silicon (M1) on macOS Monterey. Apple ......
Read more >[App Server] Compatibility with M1 chip Mac - Anvil Works
EmbeddedPostgres ] Detected a Darwin aarch64 system ... I suspect that the version of io.zonky.test.db.postgres.embedded is the issue, ...
Read more >Using Postgres LAG with a TEMP table-postgresql - appsloveworld
Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the ... Tests using embedded postgres fail with Illegal State Exception ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For me it started working after updating deps:
embedded-database-spring-test to version 2.1.1 embedded-postgres-binaries-bom to version 14.2.0
(current latest versions)
@timt Could you please test your build with version 11.14.0? This version should already contain native arm binaries, so maybe it could solve the problem. Note that the name of the dependency still refers to amd64 platform and when the build starts the library is still printing out the warning message. Don’t worry, it’s because the package contains binaries in Apple’s universal format and the library doesn’t take it into account.