Hello,
I tried the email g...@vger.kernel.org but this was pinged back.
This issue was encountered during a class demo. I’m doing a Git course on PluralSight, so there isn’t a production / mission related issue here. Just a real curious one.
Here is the code for the build step with step and runner debugging turned on. See the highlighted error below, it was sitting right in front of me, I just didn’t see it. Step and runner debugging were not needed:
##[debug]Evaluating condition for step: 'Run docker build . -t ${{ env.IMAGE_NAME }}'
##[debug]Evaluating: format('docker build . -t {0}', env.IMAGE_NAME)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'docker build . -t {0}'
##[debug]..Evaluating Index:
##[debug]....Evaluating env:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'IMAGE_NAME'
##[debug]..=> '***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]=> 'docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]Result: 'docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]Set step '__run' display name to: 'Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b
##[debug]Loading inputs
##[debug]Evaluating: format('docker build . -t {0}', env.IMAGE_NAME)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'docker build . -t {0}'
##[debug]..Evaluating Index:
##[debug]....Evaluating env:
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'IMAGE_NAME'
##[debug]..=> '***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]=> 'docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]Result: 'docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b'
##[debug]Loading env
Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a0b2d464-3974-4429-8869-5b6b55ad49a1.sh
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/runner/work/DockerDeployDemoVS22EntRepo/DockerDeployDemoVS22EntRepo/Dockerfile: no such file or directory
Error: Process completed with exit code 1.
##[debug]Finishing: Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b
DockerDeployDemoVS22EntRepo should be DockerDeployDemoVS22Ent but somehow the DockerDeployDemoVS22EntRepo part of the path segment is duplicated.
Here is a screen shot. Following is a screen shot of the solution that was pushed up from VS 22 Enterprise.
e path is being incorrectly constructed, somehow. Is
there a flag that can be set, or something like this, to force the correct path
to be created?
ere is what was pushed up from VS. The project name
becomes a part of the path, and this is correctly rendered in Git.

Does the workflow code in Git expect the project and repo to both be named the same? I put in ‘Repo’ on all repository names so that I know what’s what when looking at a path. For me it makes sense. Did I find a way to break things for Docker related repos?
Michael W. Durthaler
Software Development Specialist
Division of Information Technology
1980 W. Broad Street, Columbus, Ohio 43223
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a0b2d464-3974-4429-8869-5b6b55ad49a1.sh
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/runner/work/DockerDeployDemoVS22EntRepo/DockerDeployDemoVS22EntRepo/Dockerfile: no such file or directory
Error: Process completed with exit code 1.
##[debug]Finishing: Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b
DockerDeployDemoVS22EntRepo should be DockerDeployDemoVS22Ent but somehow the DockerDeployDemoVS22EntRepo part of the path segment is duplicated.
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a0b2d464-3974-4429-8869-5b6b55ad49a1.sh
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/runner/work/DockerDeployDemoVS22EntRepo/DockerDeployDemoVS22EntRepo/Dockerfile: no such file or directory
Error: Process completed with exit code 1.
##[debug]Finishing: Run docker build . -t ***.azurecr.io/webapp:1d69b259c8cda2e3f63c8511326346689601557b
DockerDeployDemoVS22EntRepo should be DockerDeployDemoVS22Ent but somehow the DockerDeployDemoVS22EntRepo part