Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Copilot Instructions

## Prerequisites

Requires **Java 21+** and **Apache Maven 3.9+**.

If Maven is not installed, download and extract it (no admin required):

```powershell
# Download Maven 3.9.8
Invoke-WebRequest -Uri "https://archive.apache.org/dist/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.zip" -OutFile "$env:TEMP\maven.zip" -UseBasicParsing

# Extract to .tools/ inside the repo (gitignored)
Expand-Archive -Path "$env:TEMP\maven.zip" -DestinationPath ".tools" -Force

# Add to PATH for the current session
$env:PATH = "$PWD\.tools\apache-maven-3.9.8\bin;$env:PATH"
```

Verify with `mvn -version`.

Note: `.mvn/jvm.config` includes `--add-opens` to suppress Maven reflection warnings. On Java 22+, additional harmless warnings from Maven's jansi/guava/sisu libraries may appear — these will be resolved in Maven 4.0.

When running Maven in PowerShell, pipe through `Out-Host` to avoid stderr warnings showing as red errors:

```powershell
mvn package -DskipTests 2>&1 | Out-Host
```

## Build & Test

```bash
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ target/
.settings/
dependency-reduced-pom.xml

# Local tool installs (Maven, etc.)
.tools/

# IDE
*.iml
.idea/
Expand Down
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
2 changes: 1 addition & 1 deletion src/main/java/org/quetoo/installer/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Observable<Delta> delta(final Observable<Index> indices) {
* @return An Observable yielding the synchronized files.
*/
public Observable<File> sync(final Observable<Delta> deltas) {
return deltas.concatMap(delta -> delta.getIndex().getSync().sync(delta))
return deltas.flatMap(delta -> delta.getIndex().getSync().sync(delta))
.doOnNext(file -> {
if (file.getParentFile().equals(config.getBin())) {
file.setExecutable(true);
Expand Down