diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed68fbf..20510be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: Build on: - [push] + push: + pull_request_target: + types: [labeled] jobs: build: name: Build and Test @@ -29,4 +31,4 @@ jobs: with: prerelease: true token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} - generate_release_notes: true \ No newline at end of file + generate_release_notes: true diff --git a/.github/workflows/publish-central.yml b/.github/workflows/publish-central.yml index 68de332..da62733 100644 --- a/.github/workflows/publish-central.yml +++ b/.github/workflows/publish-central.yml @@ -21,8 +21,6 @@ jobs: server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_PASSWORD # env variable for token in deploy - gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: Enforce project version ${{ github.event.inputs.tag }} run: mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }} - name: Deploy @@ -35,4 +33,5 @@ jobs: --add-opens=java.desktop/java.awt.font=ALL-UNNAMED MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} \ No newline at end of file + MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} + MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import \ No newline at end of file diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index 0ab2eec..542787a 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -13,8 +13,6 @@ jobs: java-version: 22 distribution: 'zulu' cache: 'maven' - gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: Enforce project version ${{ github.event.release.tag_name }} run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }} - name: Deploy @@ -22,6 +20,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} + MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import - name: Slack Notification uses: rtCamp/action-slack-notify@v2 env: diff --git a/pom.xml b/pom.xml index b874136..59ef6ef 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.cryptomator fuse-nio-adapter - 5.0.0 + 5.0.1 FUSE-NIO-Adapter Access resources at a given NIO path via FUSE. https://github.com/cryptomator/fuse-nio-adapter @@ -22,17 +22,17 @@ 1.3.1 0.7.0 - 2.0.13 + 2.0.16 3.1.8 - 5.10.2 - 5.11.0 + 5.10.3 + 5.12.0 2.6.9 - 9.1.0 - 3.1.1 + 10.0.3 + 3.1.2 0.8.12 @@ -161,7 +161,7 @@ org.apache.maven.plugins maven-dependency-plugin - 3.6.1 + 3.7.1 jar-paths-to-properties @@ -189,7 +189,7 @@ maven-surefire-plugin - 3.2.5 + 3.3.1 @{surefire.jacoco.args} -javaagent:${net.bytebuddy:byte-buddy-agent:jar} @@ -197,7 +197,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.4.1 + 3.4.2 maven-source-plugin @@ -213,7 +213,7 @@ maven-javadoc-plugin - 3.6.3 + 3.8.0 attach-javadocs @@ -301,10 +301,7 @@ sign - - --pinentry-mode - loopback - + bc @@ -327,7 +324,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.13 + 1.7.0 true ossrh diff --git a/src/main/java/org/cryptomator/frontend/fuse/ReadOnlyAdapter.java b/src/main/java/org/cryptomator/frontend/fuse/ReadOnlyAdapter.java index ddeb7d4..7038592 100644 --- a/src/main/java/org/cryptomator/frontend/fuse/ReadOnlyAdapter.java +++ b/src/main/java/org/cryptomator/frontend/fuse/ReadOnlyAdapter.java @@ -322,7 +322,7 @@ public int open(String path, FileInfo fi) { try (PathLock pathLock = lockManager.lockForReading(path); DataLock _ = pathLock.lockDataForReading()) { Path node = resolvePath(fileNameTranscoder.fuseToNio(path)); - LOG.trace("open {} ({})", path, fi.getFh()); + LOG.trace("open {}", path); fileHandler.open(node, fi); return 0; } catch (NoSuchFileException e) { diff --git a/src/main/java/org/cryptomator/frontend/fuse/mount/FuseTMountProvider.java b/src/main/java/org/cryptomator/frontend/fuse/mount/FuseTMountProvider.java index e8deaf5..6741a80 100644 --- a/src/main/java/org/cryptomator/frontend/fuse/mount/FuseTMountProvider.java +++ b/src/main/java/org/cryptomator/frontend/fuse/mount/FuseTMountProvider.java @@ -40,6 +40,7 @@ public class FuseTMountProvider implements MountService { private static final String DYLIB_PATH = "/usr/local/lib/libfuse-t.dylib"; private static final Path USER_HOME = Paths.get(System.getProperty("user.home")); + private static final String MOUNT_OPTION_NOXATTR = "-ononamedattr"; @Override public String displayName() { @@ -70,7 +71,8 @@ public int getDefaultLoopbackPort() { public String getDefaultMountFlags() { // see: https://github.com/macos-fuse-t/fuse-t/wiki#supported-mount-options try { - return "-orwsize=262144" // + return MOUNT_OPTION_NOXATTR // + + " -orwsize=262144" // + " -ouid=" + Files.getAttribute(USER_HOME, "unix:uid") // + " -ogid=" + Files.getAttribute(USER_HOME, "unix:gid"); } catch (IOException e) { @@ -109,6 +111,7 @@ protected Set combinedMountFlags() { // if (port != 0) { // combined.add("-l 0:" + port); // } + combined.add(MOUNT_OPTION_NOXATTR); //required due to https://github.com/cryptomator/cryptomator/issues/3538 return combined; }