-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to pack with version 0.12 #670
Comments
@ManuDinicola which .NET Core SDK version is used in the failing build? 6.0.200? |
@sophiewigmore yes the sdk is 6.0.200 |
Ok, I've tried to reproduce this error by creating a new app that looks just like https://github.com/paketo-buildpacks/dotnet-publish/tree/main/integration/testdata/multiple_projects_msbuild, but uses .NET Core 6. When I built it with .NET Core buildpack v0.12.0, it used SDK 6.0.200 and the build succeeded. I wasn't able to reproduce the error. Would you be able to point me to an app I could use to try to reproduce this? If not your actual app, maybe a simple example that could be used? |
you can take this app. The problem occur when we have multiple project where Project A reference Project B and Project B reference Project C |
Great, I just tried out a few builds with this app.
The only discernible difference is the .NET Core SDK version being used as you pointed out.. I think we'll need to investigate this further |
publish.log With the real project where the error happen , the error is a little bit different. (You can see the error in the file below) |
I've reproduced this with a different project that has a similar dependency structure: https://github.com/blogifierdotnet/Blogifier It seems that this may be an instance of this issue filed on the .NET SDK repo. We'll continue to monitor that issue for updates. For the time being, as a workaround, you can
Then, you can |
Heads up, @ManuDinicola, we've opened an RFC to make changes to the .NET SDK buildpack that should address your issue: paketo-buildpacks/rfcs#185 |
See my comment on this issue in paketo-buildpacks/rfcs#185 (comment) |
I've also reproduced this issue trying to build components of https://github.com/Squidex/squidex |
What happened?
After upgrading to the version 0.12 , the dotnet publish failed. If we specify the version 0.11.3, no error occur.
The problem occur when we have project A that reference Project B that reference Project C.
If we use the same dotnet sdk 6.0.200 and run the dotnet publish witht the same parameter , we don't encounter any errors.
What were you attempting to do?
We try to pack our dotnet application with gcr.io/paketo-buildpacks/dotnet-core buildpack v0.12
What did you expect to happen?
That the command succeeded
Build Configuration
pack
,kpack
,tekton
buildpacks plugin, etc.) are youusing? Please include a version.
pack build testpublish --env BP_DOTNET_PROJECT_PATH=./src/WebApi --env BP_DOTNET_PUBLISH_FLAGS="--verbosity=detailed"
pack --version
0.23.0+git-0db2c77.build-3056
What buildpacks are you using? Please include versions.
gcr.io/paketo-buildpacks/dotnet-core:0.12.0
What builder are you using? If custom, can you provide the output from
pack inspect-builder <builder>
?paketobuildpacks/builder:base
Can you provide a sample app or relevant configuration (
buildpack.yml
,nginx.conf
, etc.)?here is a sample project https://github.com/ManuDinicola/NetPublishedFailed
Checklist
The text was updated successfully, but these errors were encountered: