Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Posix Error running serverless deploy on windows #103

Open
allumbra opened this issue Jan 29, 2018 · 1 comment
Open

Posix Error running serverless deploy on windows #103

allumbra opened this issue Jan 29, 2018 · 1 comment

Comments

@allumbra
Copy link

I am trying to do the simple example on the blog post on windows. When running "servless deploy" I got an error:

Error --------------------------------------------------

Command failed: lein update-in :cljs-lambda assoc :functions '[{:name "lambda-cljs-example-dev-echo" :invoke lambda-cljs-example.core/echo}]' -- cljs-lambda build :output C:\Users\bcorliss\Documents\Projects\lambda-cljs-example/.serverless/lambda-cljs-example.zip :quiet

When running this line separately I got the following stack trace (relevant portion here):

PS C:\Users\bcorliss\Documents\Projects\lambda-cljs-example> lein update-in :cljs-lambda assoc :functions '[{:name "lambda-cljs-example-dev-echo" :invoke lambda-cljs-example.core/echo}]' -- cljs-lambda build :output C:\Users\bcorliss\Documents\Projects\lambda-cljs-example/.serverless/lambda-cljs-example.zip :quiet up to date in 0.128s java.lang.UnsupportedOperationException: null at sun.nio.fs.WindowsFileSystemProvider.readAttributes (WindowsFileSystemProvider.java:192) java.nio.file.Files.readAttributes (Files.java:1737) java.nio.file.Files.getPosixFilePermissions (Files.java:2004) leiningen.cljs_lambda.zip_tedium$get_posix_mode.invokeStatic (zip_tedium.clj:16) leiningen.cljs_lambda.zip_tedium$get_posix_mode.invoke (zip_tedium.clj:14) leiningen.cljs_lambda.zip_tedium$zip_entry.invokeStatic (zip_tedium.clj:34) leiningen.cljs_lambda.zip_tedium$zip_entry.doInvoke (zip_tedium.clj:28) clojure.lang.RestFn.invoke (RestFn.java:442) leiningen.cljs_lambda.zip_tedium$eval1160$fn__1163.invoke (zip_tedium.clj:65) clojure.lang.MultiFn.invoke (MultiFn.java:238) leiningen.cljs_lambda.zip_tedium$write_zip$fn__1180.invoke (zip_tedium.clj:86) leiningen.cljs_lambda.zip_tedium$write_zip.invokeStatic (zip_tedium.clj:85) leiningen.cljs_lambda.zip_tedium$write_zip.invoke (zip_tedium.clj:76) leiningen.cljs_lambda$build.invokeStatic (cljs_lambda.clj:163) leiningen.cljs_lambda$build.invoke (cljs_lambda.clj:143) leiningen.cljs_lambda$cljs_lambda.invokeStatic (cljs_lambda.cl

I'm guessing this is because windows does not have posix mode?

@moea
Copy link
Member

moea commented May 13, 2018

Apologies for the late response - that's correct. I would gladly accept a fix for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants