Skip to content

Commit

Permalink
It wasn't so try again with some diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed May 14, 2024
1 parent eac5fb2 commit 19abd86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
shell: bash
env:
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }}
run: ./gradlew spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin:build
run: ./gradlew spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin:test --tests org.springframework.boot.gradle.tasks.bundling.BootBuildImageIntegrationTests.buildsImageWithBindCaches
- name: Build and Publish
id: build-and-publish
if: ${{ inputs.publish == 'true' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.DosFileAttributeView;
import java.nio.file.attribute.PosixFileAttributeView;
import java.nio.file.attribute.PosixFileAttributes;
import java.nio.file.attribute.PosixFilePermission;
import java.nio.file.attribute.UserPrincipal;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -356,6 +358,9 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
private void makeWritableIfPossible(Path path) throws IOException {
PosixFileAttributeView attributes = Files.getFileAttributeView(path, PosixFileAttributeView.class);
if (attributes != null) {
UserPrincipal owner = Files.readAttributes(path, PosixFileAttributes.class).owner();
UserPrincipal group = Files.readAttributes(path, PosixFileAttributes.class).group();
System.out.println("Making writable: " + path + " " + owner + " " + group);
Set<PosixFilePermission> permissions = new HashSet<>(Files.getPosixFilePermissions(path));
permissions.addAll(Set.of(PosixFilePermission.GROUP_WRITE, PosixFilePermission.OTHERS_WRITE,
PosixFilePermission.OWNER_WRITE));
Expand Down

0 comments on commit 19abd86

Please sign in to comment.