Comments (2)
The current implicit assumption is that the module source
is relative to spin.toml
, and I think the newly introduced ApplicationOrigin
structure in the configuration should help with this —
Lines 130 to 135 in ec5a000
I'd start with implicit relative vs. absolute path (i.e. "if it starts with /
), and stay away of the file scheme for now. We could add it later if we think it's a use case we want to support.
from spin.
Should we make it so that the path must be relative to the directory that the Spin.toml file lives? What happens if the user wants to specify absolutely path?
Right now I'm thinking.. if component source is a path, check if it is relative or not. Relative paths are relative to the directory where the Spin.toml file lives. If not relative, use absolute path given. How should a user denote they're supplying an absolute path? Should it be by using /
at the beginning of the component source string? Should they specify the file URI scheme? https://en.wikipedia.org/wiki/File_URI_scheme
from spin.
Related Issues (20)
- Unhide planned Spin 1.4 features
- Go SDK SQLite support HOT 4
- Detect malformed configuration variable keys before up/deploy HOT 1
- Application validation crate/API HOT 4
- Use `wit-bindgen-go` to generate go bindings given WIT interfaces HOT 2
- misleading error message for application variables HOT 4
- Recovery when release automation fails
- Handle `libsql://` scheme in SQLite runtime config
- failed to start containerd task "" missing field `spin_version` on AKS HOT 5
- HTTP Rust example build failure
- Redis handlers broken in Rust SDK 1.4
- can't build go-api with mongoDB HOT 3
- `spin plugin install` fails if latest plugin version doesn't support current Spin version HOT 3
- Timer trigger sample fails to resolve import
- If local tar file doesn't exist, `spin plugins install` gives unhelpful message HOT 2
- Build succeeds but application does not run. HOT 7
- `spin add static-fileserver` creates folder based on component name (still have to create `assets` dir manually) HOT 2
- format the application endpoint to make it obvious it's a link HOT 1
- Spin build - js2wasm error on Ubuntu 20.04 HOT 4
- Dart/Flutter example documentation? HOT 3
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 spin.