Giter VIP home page Giter VIP logo

Comments (8)

derjohn avatar derjohn commented on June 2, 2024

+1 here. Building with mvn, not with docker.

from nexus-repository-apt.

derjohn avatar derjohn commented on June 2, 2024

Tried with docker, too, same issue.

from nexus-repository-apt.

derjohn avatar derjohn commented on June 2, 2024
diff --git a/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java b/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
index 88e7eba..202c932 100644
--- a/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
+++ b/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedComponentMaintenanceFacet.java
@@ -36,14 +36,14 @@ public class AptHostedComponentMaintenanceFacet
 {
   @Transactional(retryOn = ONeedRetryException.class)
   @Override
-  protected void deleteAssetTx(EntityId assetId) {
+  protected void deleteAssetTx(EntityId assetId, boolean deleteBlobs) {
     StorageTx tx = UnitOfWork.currentTx();
     Asset asset = tx.findAsset(assetId, tx.findBucket(getRepository()));
     if (asset == null) {
       return;
     }
     String assetKind = asset.formatAttributes().get(P_ASSET_KIND, String.class);
-    super.deleteAssetTx(assetId);
+    super.deleteAssetTx(assetId, true);
     if ("DEB".equals(assetKind)) {
       try {
         getRepository().facet(AptHostedFacet.class)

I have no idea what boolean deleteBlobs does in that context, but this way it compiles.

from nexus-repository-apt.

collinpeters avatar collinpeters commented on June 2, 2024

The deleteBlobs boolean is for some upcoming functionality on moving components between repos in the same blob store. Apologies for breaking the signature on that method! We left behind proper signatures for deleteComponent and deleteAsset but not deleteComponentTx and deleteAssetTx.

Passing true is the correct solution so the above fix is correct.

from nexus-repository-apt.

DarthHater avatar DarthHater commented on June 2, 2024

Thanks @collinpeters !!!

from nexus-repository-apt.

mpoindexter avatar mpoindexter commented on June 2, 2024

Newer builds work with newer versions of Nexus, so closing this out

from nexus-repository-apt.

aplsms avatar aplsms commented on June 2, 2024

from nexus-repository-apt.

mpoindexter avatar mpoindexter commented on June 2, 2024

Not sure what you're asking. Proper docker image for what? If you mean the docker image that works with the latest version of the code, the master branch works with Nexus 3.11 right now.

from nexus-repository-apt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.