Skip to content

Commit 02f9665

Browse files
committed
refactor: rename utils/mpm directory to utils/mows-cli
Rename the project directory to match the crate name. Update all references in CI workflow, dependabot, docs, install script, and self-update build path.
1 parent 1f50a6f commit 02f9665

80 files changed

Lines changed: 22 additions & 21 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ updates:
1212
- "dependencies"
1313
- "github-actions"
1414

15-
# Rust dependencies for mpm - monthly updates
15+
# Rust dependencies for mows-cli - monthly updates
1616
# Security updates are always created regardless of schedule
1717
- package-ecosystem: "cargo"
18-
directory: "/utils/mpm"
18+
directory: "/utils/mows-cli"
1919
schedule:
2020
interval: "monthly"
2121
commit-message:
22-
prefix: "deps(mpm)"
22+
prefix: "deps(mows-cli)"
2323
labels:
2424
- "dependencies"
2525
- "rust"

.github/workflows/publish-mows-cli.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
tags:
66
- 'mows-cli-v*'
77
paths:
8-
- 'utils/mpm/**'
8+
- 'utils/mows-cli/**'
99
- 'utils/mows-common-rust/**'
1010
- '.github/workflows/publish-mows-cli.yml'
1111
pull_request:
1212
paths:
13-
- 'utils/mpm/**'
13+
- 'utils/mows-cli/**'
1414
- 'utils/mows-common-rust/**'
1515
- '.github/workflows/publish-mows-cli.yml'
1616
workflow_dispatch:
@@ -38,34 +38,34 @@ jobs:
3838
path: |
3939
~/.cargo/registry
4040
~/.cargo/git
41-
utils/mpm/target
42-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('utils/mpm/Cargo.lock') }}
41+
utils/mows-cli/target
42+
key: ${{ runner.os }}-cargo-test-${{ hashFiles('utils/mows-cli/Cargo.lock') }}
4343
restore-keys: |
4444
${{ runner.os }}-cargo-test-
4545
4646
- name: Run unit tests
4747
run: |
48-
cd utils/mpm
48+
cd utils/mows-cli
4949
cargo test --release
5050
5151
- name: Build release binary for e2e tests
5252
run: |
53-
cd utils/mpm
53+
cd utils/mows-cli
5454
cargo build --release
5555
5656
- name: Create mpm symlink for e2e tests
5757
run: |
58-
ln -sf mows utils/mpm/target/release/mpm
58+
ln -sf mows utils/mows-cli/target/release/mpm
5959
6060
- name: Run e2e tests
6161
run: |
62-
cd utils/mpm/tests
62+
cd utils/mows-cli/tests
6363
# Use mock Docker client for tests that would otherwise need Docker daemon
6464
# Skip test-self-update which requires network access to GitHub API
6565
SKIP_TESTS="test-self-update" ./run-all.sh
6666
env:
67-
MOWS_BIN: ${{ github.workspace }}/utils/mpm/target/release/mows
68-
MPM_BIN: ${{ github.workspace }}/utils/mpm/target/release/mpm
67+
MOWS_BIN: ${{ github.workspace }}/utils/mows-cli/target/release/mows
68+
MPM_BIN: ${{ github.workspace }}/utils/mows-cli/target/release/mpm
6969
MPM_MOCK_DOCKER: "1"
7070

7171
build:
@@ -99,7 +99,7 @@ jobs:
9999
TARGETARCH: ${{ matrix.arch }}
100100
BUILDX_CACHE: gha
101101
run: |
102-
cd utils/mpm
102+
cd utils/mows-cli
103103
bash build.sh
104104
105105
- name: Get version from tag
@@ -115,7 +115,7 @@ jobs:
115115
116116
- name: Rename binary with version and platform
117117
run: |
118-
cd utils/mpm/dist
118+
cd utils/mows-cli/dist
119119
# Remove symlink, keep only the real binary
120120
rm -f mpm
121121
mv mows mows-${{ steps.get_version.outputs.version }}-${{ matrix.os_name }}-${{ matrix.arch }}
@@ -124,7 +124,7 @@ jobs:
124124
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v4
125125
with:
126126
name: mows-${{ matrix.os_name }}-${{ matrix.arch }}
127-
path: utils/mpm/dist/mows-*
127+
path: utils/mows-cli/dist/mows-*
128128
retention-days: 7
129129

130130
release:
Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)