Skip to content

Commit 7583fc5

Browse files
authored
Merge pull request #2789 from lann/remove-grain-swift
Update templates for mandatory componentization
2 parents 09de9c3 + 199ebf1 commit 7583fc5

File tree

8 files changed

+9
-66
lines changed

8 files changed

+9
-66
lines changed

crates/templates/src/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ mod tests {
566566
}
567567
}
568568

569-
const TPLS_IN_THIS: usize = 12;
569+
const TPLS_IN_THIS: usize = 11;
570570

571571
#[tokio::test]
572572
async fn can_install_into_new_directory() {

templates/http-grain/content/main.gr

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
print("content-type: text/plain")
2-
print("")
3-
print("Hello, World")
1+
module Main
2+
3+
provide let _start = () => {
4+
print("content-type: text/plain")
5+
print("")
6+
print("Hello, World")
7+
}

templates/http-grain/content/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ executor = { type = "wagi" }
1515
source = "main.wasm"
1616
allowed_outbound_hosts = []
1717
[component.{{project-name | kebab_case}}.build]
18-
command = "grain compile --release -o main.wasm main.gr"
18+
command = "grain compile --release --use-start-section -o main.wasm main.gr"
1919
watch = ["**/*.gr"]

templates/http-swift/content/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

templates/http-swift/content/main.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

templates/http-swift/content/spin.toml

Lines changed: 0 additions & 19 deletions
This file was deleted.

templates/http-swift/metadata/spin-template.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/integration.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ Caused by:
628628
#[test]
629629
#[cfg(target_arch = "x86_64")]
630630
#[cfg(feature = "extern-dependencies-tests")]
631-
#[ignore = "https://github.com/fermyon/spin/issues/2774"]
632631
fn http_grain_template_smoke_test() -> anyhow::Result<()> {
633632
http_smoke_test_template(
634633
"http-grain",
@@ -655,21 +654,6 @@ Caused by:
655654
)
656655
}
657656

658-
#[test]
659-
#[cfg(feature = "extern-dependencies-tests")]
660-
#[ignore = "https://github.com/fermyon/spin/issues/2774"]
661-
fn http_swift_template_smoke_test() -> anyhow::Result<()> {
662-
http_smoke_test_template(
663-
"http-swift",
664-
None,
665-
None,
666-
&[],
667-
|_| Ok(()),
668-
HashMap::default(),
669-
"Hello from WAGI/1!\n",
670-
)
671-
}
672-
673657
#[test]
674658
#[cfg(feature = "extern-dependencies-tests")]
675659
fn http_php_template_smoke_test() -> anyhow::Result<()> {

0 commit comments

Comments
 (0)