Skip to content

Commit 54e0e49

Browse files
authored
Improve file normalization (LF vs CRLF) enforcement and devcontainer mount paths (#60)
1 parent a86f20c commit 54e0e49

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.devcontainer/devcontainer.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
"PYTHONPATH": "/graphrag-accelerator/backend/:$PATH"
2323
},
2424
"mounts": [
25+
// NOTE: we reference both HOME and USERPROFILE environment variables to simultaneously support both Windows and Unix environments
26+
// in most default situations, only one variable will exist (Windows has USERPROFILE and unix has HOME) and a reference to the other variable will result in an empty string
2527
// Keep command history
2628
"type=volume,source=graphrag-bashhistory,target=/home/vscode/command_history",
2729
"type=volume,source=graphrag-devcontainer-vscode-server,target=/home/vscode/.vscode-server/extensions",
2830
// Mounts the login details from the host machine so azcli works seamlessly in the container
29-
// "type=bind,source=${localEnv:HOME}/.azure,target=/home/vscode/.azure",
31+
// "type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.azure,target=/home/vscode/.azure",
3032
// Mounts the ssh details from the host machine - this allows the container to connect to ssh hosts
31-
"type=bind,source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh",
33+
"type=bind,source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh",
3234
// Mount docker socket for docker builds
3335
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
3436
],

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true

0 commit comments

Comments
 (0)