We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9c1bf01 commitef089beCopy full SHA for ef089be
agent/agentcontainers/devcontainer.go
@@ -64,13 +64,16 @@ func devcontainerStartupScript(dc codersdk.WorkspaceAgentDevcontainer, script co
64
}
65
66
funcexpandDevcontainerPaths(logger slog.Logger,expandPathfunc(string) (string,error),dc codersdk.WorkspaceAgentDevcontainer) codersdk.WorkspaceAgentDevcontainer {
67
-varerrerror
68
-ifdc.WorkspaceFolder,err=expandPath(dc.WorkspaceFolder);err!=nil {
+ifwf,err:=expandPath(dc.WorkspaceFolder);err!=nil {
69
logger.Warn(context.Background(),"expand devcontainer workspace folder failed",slog.Error(err))
+}else {
70
+dc.WorkspaceFolder=wf
71
72
ifdc.ConfigPath!="" {
-ifdc.ConfigPath,err=expandPath(dc.ConfigPath);err!=nil {
73
+ifcp,err:=expandPath(dc.ConfigPath);err!=nil {
74
logger.Warn(context.Background(),"expand devcontainer config path failed",slog.Error(err))
75
76
+dc.ConfigPath=cp
77
78
79
returndc