Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .devcontainer/arduino/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "pipx install platformio && node scripts/prepare-demo.mjs arduino && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/arduino",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cargo/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": ".devcontainer/cargo/setup.sh && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/cargo",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cocoapods/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "gem install cocoapods --no-document && node scripts/prepare-demo.mjs cocoapods && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/cocoapods",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/conan/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "pipx install conan && node scripts/prepare-demo.mjs conan && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/conan",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/go/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs go && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/go",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/hex/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs hex && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/hex",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/maven/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs maven && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/maven",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/npm/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
"onCreateCommand": "node scripts/prepare-demo.mjs npm && npm --prefix demos/npm install --no-audit --no-fund && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/npm",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/nuget/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs nuget && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/nuget",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/opam/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs opam && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/opam",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/packagist/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs packagist && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/packagist",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/pub/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs pub && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/pub",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/pypi/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs pypi && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/pypi",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/rubygems/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs rubygems && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/rubygems",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/swift/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs swift && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/swift",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/vcpkg/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"onCreateCommand": "node scripts/prepare-demo.mjs vcpkg && npm install -g @usedrift/cli",
"waitFor": "onCreateCommand",
"postAttachCommand": "drift analyze --dir demos/vcpkg",
"postAttachCommand": "drift analyze",
"customizations": {
"vscode": {
"extensions": [
Expand Down
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ demos/**/obj/
demos/**/.gradle/
demos/**/vendor/

# Lockfiles a demo's setup step writes. The demos pin exact versions in their
# manifests, so nothing is committed here — and an untracked lockfile would
# otherwise show up in the `git status` that DEMO.md points at to prove only
# the manifest changed.
demos/**/package-lock.json
demos/**/Cargo.lock
demos/**/Gemfile.lock
demos/**/composer.lock
demos/**/mix.lock
demos/**/pubspec.lock
demos/**/Package.resolved
demos/**/Podfile.lock
demos/**/packages.lock.json

# Go demo build binary
demos/go/drift-demo-go

Expand Down
10 changes: 7 additions & 3 deletions demos/arduino/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The 5 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/arduino`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -37,8 +38,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/arduino
drift explain bblanchon/ArduinoJson --dir demos/arduino
drift analyze # what this upgrade breaks here
drift explain bblanchon/ArduinoJson
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs arduino`.
10 changes: 7 additions & 3 deletions demos/cargo/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The 5 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/cargo`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -37,8 +38,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/cargo
drift explain clap --dir demos/cargo
drift analyze # what this upgrade breaks here
drift explain clap
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs cargo`.
10 changes: 7 additions & 3 deletions demos/cocoapods/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The 5 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/cocoapods`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -37,8 +38,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/cocoapods
drift explain Alamofire --dir demos/cocoapods
drift analyze # what this upgrade breaks here
drift explain Alamofire
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs cocoapods`.
10 changes: 7 additions & 3 deletions demos/conan/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ The breaking change in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/conan`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -33,8 +34,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/conan
drift explain fmt --dir demos/conan
drift analyze # what this upgrade breaks here
drift explain fmt
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs conan`.
10 changes: 7 additions & 3 deletions demos/go/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ The 4 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/go`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -36,8 +37,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/go
drift explain golang.org/x/exp --dir demos/go
drift analyze # what this upgrade breaks here
drift explain golang.org/x/exp
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs go`.
10 changes: 7 additions & 3 deletions demos/hex/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ The breaking change in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/hex`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -33,8 +34,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/hex
drift explain plug --dir demos/hex
drift analyze # what this upgrade breaks here
drift explain plug
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs hex`.
10 changes: 7 additions & 3 deletions demos/maven/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ The 4 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/maven`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -36,8 +37,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/maven
drift explain com.google.guava:guava --dir demos/maven
drift analyze # what this upgrade breaks here
drift explain com.google.guava:guava
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs maven`.
10 changes: 7 additions & 3 deletions demos/npm/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The 3 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/npm`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -35,8 +36,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/npm
drift explain axios --dir demos/npm
drift analyze # what this upgrade breaks here
drift explain axios
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs npm`.
10 changes: 7 additions & 3 deletions demos/nuget/DEMO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The 5 breaking changes in this demo:
Both halves of Drift started on their own when this Codespace opened:

- the **panel** on the left, which analysed the change and lists what it found;
- the **terminal**, which ran `drift analyze --dir demos/nuget`.
- the **terminal**, which ran `drift analyze` from the repository root, where
this demo's manifest is the only changed one.

From there:

Expand All @@ -37,8 +38,11 @@ git status --short # only the manifest is modified; the source is untouched
Run it again yourself, or ask a different question:

```sh
drift analyze --dir demos/nuget
drift explain AutoMapper --dir demos/nuget
drift analyze # what this upgrade breaks here
drift explain AutoMapper
```

Run these from the repository root — the demo's manifest is the only changed
one, so there is nothing to point them at.

Reset it with `node scripts/reset-demo.mjs nuget`.
Loading
Loading