Repository navigation
Fix the Docker build: copy the ACE.Adapter.Tests project before restore - #4559
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
docker buildworkflow has failed on every push to master since #4551.#4551 added
ACE.Adapter.TeststoACE.sln. The Dockerfile restores in a separate layer: it copies the solution file and each project's.csprojone by one, then runsdotnet restoreagainst the solution. The new test project's.csprojwas not added to that list. The restore therefore fails because the solution refers to a project file that isn't there:In the workflow log this shows up as
process "/bin/sh -c dotnet restore -a $TARGETARCH" did not complete successfully: exit code: 1.This PR adds the missing line, in alphabetical order with the others:
COPY ./Source/ACE.Adapter.Tests/*.csproj ./ACE.Adapter.Tests/Testing
I reproduced the restore step outside Docker by copying exactly the files the Dockerfile copies (
ACE.slnand the nine listed.csprojfiles) into an empty folder and runningdotnet restore:ACE.Adapter.Tests.csprojadded, the restore succeeds.I have not run a full
docker build.Note for future test projects
Any new project added to
ACE.slnalso needs aCOPYline in the Dockerfile's restore layer.🤖 Generated with Claude Code