Skip to content

Commit 8f46ff6

Browse files
authored
Merge pull request #20 from forcedotcom/zip-fix-and-doc-update
Zip payload folder fix and troubleshooting doc update
2 parents d83feb8 + 5aa745b commit 8f46ff6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

docs/troubleshooting.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,16 @@ This error indicates your machine either doesn't have a JDK configured, or an in
2424
Ensure that:
2525
- `JAVA_HOME` is setup properly and you can run `java -version` successfully
2626
- You have openJDK zulu 17 installed: https://www.azul.com/downloads/?package=jdk#zulu
27+
28+
### Docker not running
29+
30+
```zsh
31+
return code: 1
32+
stdout:
33+
stderr:
34+
Cannot connect to the Docker daemon at unix:///Users/username/.docker/run/docker.sock. Is the docker daemon running?
35+
```
36+
37+
This indicates that, even if you have docker installed, it's not running. [Docker Desktop](https://docs.docker.com/desktop/)
38+
is an easy way to use docker on your machine. After installation, make sure to double-click the app in Applications folder
39+
(if on mac) so that it's running.

src/datacustomcode/deploy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ def zip(
372372
for file in files:
373373
if file != ".DS_Store":
374374
file_path = os.path.join(root, file)
375-
# Preserve relative path structure in the zip file
376-
arcname = os.path.relpath(file_path, directory)
377-
zipf.write(file_path, arcname)
375+
zipf.write(file_path)
378376

379377
logger.debug(f"Created zip file: {ZIP_FILE_NAME}")
380378

0 commit comments

Comments
 (0)