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

Update templates for mandatory componentization #2789

Merged
merged 3 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/templates/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ mod tests {
}
}

const TPLS_IN_THIS: usize = 12;
const TPLS_IN_THIS: usize = 11;

#[tokio::test]
async fn can_install_into_new_directory() {
Expand Down
10 changes: 7 additions & 3 deletions templates/http-grain/content/main.gr
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
print("content-type: text/plain")
print("")
print("Hello, World")
module Main

provide let _start = () => {
print("content-type: text/plain")
print("")
print("Hello, World")
}
2 changes: 1 addition & 1 deletion templates/http-grain/content/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ executor = { type = "wagi" }
source = "main.wasm"
allowed_outbound_hosts = []
[component.{{project-name | kebab_case}}.build]
command = "grain compile --release -o main.wasm main.gr"
command = "grain compile --release --use-start-section -o main.wasm main.gr"
watch = ["**/*.gr"]
2 changes: 0 additions & 2 deletions templates/http-swift/content/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions templates/http-swift/content/main.swift

This file was deleted.

19 changes: 0 additions & 19 deletions templates/http-swift/content/spin.toml

This file was deleted.

8 changes: 0 additions & 8 deletions templates/http-swift/metadata/spin-template.toml

This file was deleted.

16 changes: 0 additions & 16 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ Caused by:
#[test]
#[cfg(target_arch = "x86_64")]
#[cfg(feature = "extern-dependencies-tests")]
#[ignore = "https://github.com/fermyon/spin/issues/2774"]
fn http_grain_template_smoke_test() -> anyhow::Result<()> {
http_smoke_test_template(
"http-grain",
Expand All @@ -655,21 +654,6 @@ Caused by:
)
}

#[test]
#[cfg(feature = "extern-dependencies-tests")]
#[ignore = "https://github.com/fermyon/spin/issues/2774"]
fn http_swift_template_smoke_test() -> anyhow::Result<()> {
http_smoke_test_template(
"http-swift",
None,
None,
&[],
|_| Ok(()),
HashMap::default(),
"Hello from WAGI/1!\n",
)
}

#[test]
#[cfg(feature = "extern-dependencies-tests")]
fn http_php_template_smoke_test() -> anyhow::Result<()> {
Expand Down
Loading