Comments (5)
from plenti.
Looks like the issue is building binaries for windows or darwin (mac) with v8go:
Tracking progress on rogchap/v8go#7
from plenti.
Cross compiling is an issue for all modules that rely on CGO (like v8go): rogchap/v8go#35 (comment)
There is a docker container we could use (see https://medium.com/@robdefeo/cross-compile-with-cgo-and-goreleaser-6af884731222 and goreleaser/goreleaser#708 (comment)).
It looks like a 2nd docker image was added to Goreleaser: goreleaser/goreleaser#795 (comment)
from plenti.
I was able to get this working still using the Goreleaser GitHub Action. I needed to do the following things:
- Break goreleaser into multiple builds: goreleaser/goreleaser#459
- Pass ldflags to fix errors like shown here: goreleaser/goreleaser-action#40 (comment)
- Create an osxcross target like this that we can pull into the project as a GitHub Action step (more details here):
-
name: OSXCross for CGO Support
run: |
mkdir ../plenti-osxcross
git clone https://github.com/plentico/plenti-osxcross.git ../plenti-osxcross/target
from plenti.
Additional cgo cross-compiling details:
from plenti.
Related Issues (20)
- Schema bleed HOT 2
- Gitea backend for CMS HOT 2
- Check port before build
- [Feature Request] Make plenti a caddy plugin HOT 2
- Unable to launch CMS on localhost HOT 7
- Hydration flicker HOT 1
- Bitbucket CMS Backend
- Can't use hyphens in filename HOT 1
- Install in Ubuntu HOT 1
- Failing build: Credentials are no longer valid for the Snap Store HOT 4
- Assets dir in Plenti site template HOT 3
- Failed build: field replacements not found in type config.Archive HOT 4
- Can SSR be enabled with V8 engine? HOT 2
- Error when using CMS editor with GitLab Pages in a monorepo HOT 5
- plenti serve is spitting errors HOT 9
- Fingerprint SPA to bust cache HOT 1
- Can't use "plenti" command HOT 2
- Broken build: invalid go version '1.21.0': must match format 1.23 HOT 1
- Component cache
- Custom env variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plenti.