From 375314497bc946264f45fc292e2d60cd6c600b9e Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 20 Nov 2023 13:04:52 +0200 Subject: [PATCH] fix(containers): unexpected token "-" (#7) this was caused by https://github.com/winglang/wing/issues/5008 as a workaround, rename the directory names to "_" --- containers/bring.test.w | 2 ++ containers/test/local-build.test.w | 2 +- containers/test/microservices.test.w | 4 ++-- .../Dockerfile | 0 .../index.js | 0 .../Dockerfile | 0 .../index.js | 0 containers/test/{my-app => my_app}/Dockerfile | 0 containers/test/{my-app => my_app}/index.js | 0 9 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 containers/bring.test.w rename containers/test/{microservices-consumer => microservices_consumer}/Dockerfile (100%) rename containers/test/{microservices-consumer => microservices_consumer}/index.js (100%) rename containers/test/{microservices-producer => microservices_producer}/Dockerfile (100%) rename containers/test/{microservices-producer => microservices_producer}/index.js (100%) rename containers/test/{my-app => my_app}/Dockerfile (100%) rename containers/test/{my-app => my_app}/index.js (100%) diff --git a/containers/bring.test.w b/containers/bring.test.w new file mode 100644 index 00000000..48117eaa --- /dev/null +++ b/containers/bring.test.w @@ -0,0 +1,2 @@ +bring "." as c; + diff --git a/containers/test/local-build.test.w b/containers/test/local-build.test.w index 27d8951f..779ef471 100644 --- a/containers/test/local-build.test.w +++ b/containers/test/local-build.test.w @@ -3,7 +3,7 @@ bring http; let app = new containers.Workload( name: "my-app", - image: "./my-app", + image: "./my_app", port: 3000, public: true, ); diff --git a/containers/test/microservices.test.w b/containers/test/microservices.test.w index 3e9f6e7a..df438545 100644 --- a/containers/test/microservices.test.w +++ b/containers/test/microservices.test.w @@ -5,13 +5,13 @@ bring expect; let producer = new containers.Workload( name: "producer", - image: "./microservices-producer", + image: "./microservices_producer", port: 4000, ) as "producer"; let consumer = new containers.Workload( name: "consumer", - image: "./microservices-consumer", + image: "./microservices_consumer", port: 3000, public: true, env: { diff --git a/containers/test/microservices-consumer/Dockerfile b/containers/test/microservices_consumer/Dockerfile similarity index 100% rename from containers/test/microservices-consumer/Dockerfile rename to containers/test/microservices_consumer/Dockerfile diff --git a/containers/test/microservices-consumer/index.js b/containers/test/microservices_consumer/index.js similarity index 100% rename from containers/test/microservices-consumer/index.js rename to containers/test/microservices_consumer/index.js diff --git a/containers/test/microservices-producer/Dockerfile b/containers/test/microservices_producer/Dockerfile similarity index 100% rename from containers/test/microservices-producer/Dockerfile rename to containers/test/microservices_producer/Dockerfile diff --git a/containers/test/microservices-producer/index.js b/containers/test/microservices_producer/index.js similarity index 100% rename from containers/test/microservices-producer/index.js rename to containers/test/microservices_producer/index.js diff --git a/containers/test/my-app/Dockerfile b/containers/test/my_app/Dockerfile similarity index 100% rename from containers/test/my-app/Dockerfile rename to containers/test/my_app/Dockerfile diff --git a/containers/test/my-app/index.js b/containers/test/my_app/index.js similarity index 100% rename from containers/test/my-app/index.js rename to containers/test/my_app/index.js