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

SIANXSVC-1203: Ensure library_version has correct value #8

Conversation

nachtjasmin
Copy link
Collaborator

@nachtjasmin nachtjasmin commented Jan 24, 2024

Several things had to get fixed in order for the library version to
appear in the metadata. First and foremost, the GitHub Actions workflow
was setting the PackageVersion (which is used for the NuGet package),
but not the AssemblyVersion. This is now fixed by passing the tag via
/p:Version.

Second, the current retrieved version included the commit hash, which
would have ended up to conflict with the database constraints of E5E
which limit the version to 20 characters. In order to circumvent this
problem, the hash is trimmed from the version.

Because I had the time to work on this part of the code, I took the
opportunity and made the E5ERuntimeMetadata sealed. Technically, this is
a breaking change, however I don't expect that anyone is affected by it,
so for me it'd be fine to put it in a patch release.

@nachtjasmin nachtjasmin self-assigned this Jan 24, 2024
@nachtjasmin nachtjasmin force-pushed the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch 2 times, most recently from 4af1ab2 to 080c7dc Compare January 24, 2024 13:05
@beachmachine beachmachine force-pushed the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch from 080c7dc to 1e6df7f Compare January 25, 2024 12:29
Copy link
Contributor

@beachmachine beachmachine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've built a Nuget with version 1.1.0 for this branch, and tested a deployment. However, it reports version 1.0.0.0 to E5E.

@nachtjasmin nachtjasmin force-pushed the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch 3 times, most recently from 6907b59 to 9be90dd Compare January 26, 2024 13:19
@nachtjasmin nachtjasmin added the bug Something isn't working label Jan 29, 2024
@nachtjasmin nachtjasmin force-pushed the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch from 9be90dd to a9a0baa Compare February 1, 2024 09:52
Several things had to get fixed in order for the library version to
appear in the metadata. First and foremost, the GitHub Actions workflow
was setting the PackageVersion (which is used for the NuGet package),
but not the AssemblyVersion. This is now fixed by passing the tag via
/p:Version.

Second, the current retrieved version included the commit hash, which
would have ended up to conflict with the database constraints of E5E
which limit the version to 20 characters. In order to circumvent this
problem, the hash is trimmed from the version.

Because I had the time to work on this part of the code, I took the
opportunity and made the E5ERuntimeMetadata sealed. Technically, this is
a breaking change, however I don't expect that anyone is affected by it,
so it's fine to put it in a patch release.

Closes SIANXSVC-1203
@beachmachine beachmachine force-pushed the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch from a9a0baa to dfbe794 Compare February 5, 2024 14:21
Copy link
Contributor

@beachmachine beachmachine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works now.

@beachmachine beachmachine merged commit 29f8675 into main Feb 5, 2024
2 checks passed
@beachmachine beachmachine deleted the feature/JO-SIANXSVC-1203-ensure-library_version-has-correct-value branch February 5, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants