Skip to content

Commit

Permalink
Merge pull request #2789 from lann/remove-grain-swift
Browse files Browse the repository at this point in the history
Update templates for mandatory componentization
  • Loading branch information
lann authored Aug 30, 2024
2 parents 09de9c3 + 199ebf1 commit 7583fc5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 66 deletions.
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

0 comments on commit 7583fc5

Please sign in to comment.