Closed scott-8 closed 3 years ago
@dan-v can we reopen this? I'm getting this in the build log, presumable because newlines in Windows are \r\n
. Not sure where the best place to fix this would be. I manually changed the newlines in build.sh
to \n
and it got past this part.
Setting up python3-botocore (1.16.19+repack-1ubuntu0.20.04.1) ...
Setting up python3-s3transfer (0.3.3-1) ...
Setting up awscli (1.18.69-1ubuntu0.20.04.1) ...
Completed 25.2 KiB/25.2 KiB (221.3 KiB/s) with 1 file(s) remaining
download: s3://rattlesnakeos-xxxxxxxxxxx-script/build.sh to home/ubuntu/build.sh
/home/ubuntu/build.sh: line 2: $'\r': command not found
RELEASE=20200301
AOSP_BUILD_ID=RQ2A.210305.006
AOSP_TAG=android-11.0.0_r32
CHROMIUM_VERSION=88.0.4324.181
LOCAL_MANIFEST_REVISIONS=................
/home/ubuntu/build.sh: line 16: $'\r': command not found
/home/ubuntu/build.sh: line 32: $'\r': command not found
/home/ubuntu/build.sh: line 40: $'\r': command not found
/home/ubuntu/build.sh: line 41: syntax error near unexpected token `$'{\r''
/home/ubuntu/build.sh: line 41: `import_keys() {
'
Cloud-init v. 20.4.1-0ubuntu1~20.04.1 running 'modules:final' at Wed, 10 Mar 2021 05:42:51 +0000. Up 21.04 seconds.
2021-03-10 05:43:18,717 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2021-03-10 05:43:18,717 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Cloud-init v. 20.4.1-0ubuntu1~20.04.1 finished at Wed, 10 Mar 2021 05:43:18 +0000. Datasource DataSourceEc2Local. Up 47.26 seconds
Reopened. Ah, did not consider this. Sorry I don't have a Windows box, so mostly just hoping it worked. I'll spin up a Windows host on AWS when I get a chance and work through the issues. Happy to take more PRs as well though.
Prerequisites
Description
After switching to 11.0.8, I get an error when trying to deploy on Windows.
The line in question in
main.tf
isdefault = "D:\Code\output_rattlesnakeos-xxxxxxxx\build.sh"
Doing a dry run works fine.
Steps to Reproduce
Expected behavior: Successful deployment.
Actual behavior: Error.
Platform
Windows
Full Config Used for Setup
N/A
Carrier
N/A
Email Notification Output
N/A
Full log
N/A