Skip to content
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

De-bump Npgsql.OpenTelemetry to 6.0.7 to avoid collisions with LTS entityframework #298

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

cartermp
Copy link
Member

Should fix #297

We may also want to consider a ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' block for this package and its .NET 7 version in the future, but I'd like to avoid that mess as long as possible.

This makes it so that the Npgsql dependency doesn't get all clobbered up when using LTS .NET and EntityFramework with Npgsql.

@cartermp cartermp requested review from a team and pkanal October 13, 2022 22:13
@vreynolds
Copy link
Contributor

@cartermp can you add semver labels plz?

@cartermp cartermp added the version: bump minor A PR that adds behavior, but is backwards-compatible. label Oct 14, 2022
@pkanal pkanal added the type: bug Something isn't working label Oct 14, 2022
@MikeGoldsmith MikeGoldsmith merged commit 6e99b94 into main Oct 18, 2022
@MikeGoldsmith MikeGoldsmith deleted the cartermp/npgsql-use-latest-not-rc branch October 18, 2022 10:37
JamieDanielson added a commit that referenced this pull request Apr 25, 2023
)

## Which problem is this PR solving?

- error when using with EFCore `Encountered Exception of type
MethodAccessException: Attempt by method
'Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlRelationalConnection.get_CurrentAmbientTransaction()'
to access method 'Npgsql.NpgsqlConnection.get_Settings()' failed`

## Short description of the changes

- Similar to #298 there seem to be some issues with EntityFramework with
.NET 7. This reverts back to 6.0.7, but adds a bump to a later patch
version of 6.0.9.
- If this indeed solves the problem, a follow-up issue should be added
for separating out versions for .NET 6 and .NET 7. We don't currently
include net7.0 in this package so it doesn't make sense to add that
conditional block here.
- In the meantime, I added a dependabot ignore block so we don't
inadvertently update again; we can remove it once we update with
conditionals for .NET 7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Npgsql dependency
4 participants