question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing V3 doesn't preserve Category metadata in merged manifest

See original GitHub issue
  • This issue is blocking
  • This issue is causing unreasonable pain

In diagnostics we recently moved to V3 Publishing. We set a special target in publishing.props to generate add a nupkg to ItemsToPushToBlobFeed with the ManifestArtifactData having Category=OTHER. The resulting manifest having a Category attribute in the manifest, and the package would get published to blob storage. However, V3 publishing doesn’t preserve such metadata when generating MergedManifest.xml (The Blob class in arcade-services doesn’t have a field for it) and the item ends up in the feed assigned to the default channel. This causes it to not be available through an aka.ms link nor in blob storage, and we use this in the dotnet-docker repo to generate the images. Is there any way to get this back in v3, or is this expected?

cc: @jander-msft

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
epananthcommented, Dec 17, 2021

changes merged. Closing this one finally ! 😃

1reaction
MichaelSimonscommented, Nov 5, 2020

It means that a new build of a docker image could easily be non-deterministic.

The latest link is just being used by the update automation to determine what the latest version is so that the Dockerfile can be updated accordingly. The Dockerfiles themselves reference static versions.

dotnet/monitor Dockerfile snippet

# Install .NET Monitor
ENV DOTNET_MONITOR_VERSION=5.0.0-preview.3.20523.1
RUN wget -O dotnet-monitor.$DOTNET_MONITOR_VERSION.nupkg https://dotnetcli.azureedge.net/dotnet/diagnostics/monitor5.0/dotnet-monitor.$DOTNET_MONITOR_VERSION.nupkg \
    && dotnetmonitor_sha512='86936df6ff763d5eceba18490dd1a745d7cf8b84a0999a408415bdfb35c687dc023caa5eb66cbea09a33065f36470400f09be3d7456de80911a87415aaaadc01' \
    && echo "$dotnetmonitor_sha512  dotnet-monitor.$DOTNET_MONITOR_VERSION.nupkg" | sha512sum -c - \
    && dotnet tool install dotnet-monitor --tool-path /app --add-source / --version $DOTNET_MONITOR_VERSION --no-cache \
    # To reduce image size, remove the copy of the nupkg under the tools.
    && find /app -print | grep -i '.*[.]nupkg$' | xargs rm \
    && rm dotnet-monitor.$DOTNET_MONITOR_VERSION.nupkg

Could we constrain the update in such a way that the dockerfiles can be easily manipulated by Maestro?

I will schedule a meeting to discuss this further post 5.0 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage manifest files | Android Studio
The manifest merger tool combines all XML elements from each file by following merge heuristics and obeying merge preferences that you have ...
Read more >
Android Manifest Merger: Warning related to no other ...
Mine being the library trying to override the Launcher of the Main App which is using my module as a Library. Is there...
Read more >
How Metadata Works in the Publishing World · Issue #57
We wanted to provide a framework for metadata expressions with EPUB 3, but got sucked into the metadata vortex of despair by introducing...
Read more >
Android Manifest merger not working when building APK in ...
Meta doesn't allow APKs uploaded to their store with permissions that are not needed, but Unity includes includes android.permission.
Read more >
Publication Manifest
This specification defines a general manifest format for expressing information about a digital publication. It uses [schema.org] metadata ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found