From 78e1e5c90501dee14da604addb996511de11bc42 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sat, 5 Dec 2020 23:45:43 +0000 Subject: [PATCH] Debug windows failure --- .github/workflows/ci.yml | 39 -------------------------------------- src/features/hyperlinks.rs | 10 ++++++++++ 2 files changed, 10 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e09da869f..b3d1b44dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,13 +9,7 @@ jobs: strategy: matrix: job: - - { os: macos-latest, target: x86_64-apple-darwin, use-cross: false } - { os: windows-latest, target: x86_64-pc-windows-msvc, use-cross: false } - - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu, use-cross: false } - - { os: ubuntu-latest, target: x86_64-unknown-linux-musl, use-cross: true } - - { os: ubuntu-latest, target: i686-unknown-linux-gnu, use-cross: true } - - { os: ubuntu-latest, target: arm-unknown-linux-gnueabihf, use-cross: true } - - { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, use-cross: true } steps: - name: Checkout repository uses: actions/checkout@v2 @@ -33,39 +27,6 @@ jobs: use-cross: ${{ matrix.job.use-cross }} args: --target ${{ matrix.job.target }} --verbose -- --nocapture - integration_tests: - name: Integration tests - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-latest, ubuntu-latest] - include: - - os: macos-latest - target: x86_64-apple-darwin - - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - name: Build for release - uses: actions-rs/cargo@v1 - with: - command: build - args: --target ${{ matrix.target }} --release - - name: End to end tests - run: | - DELTA_BIN=target/${{ matrix.target }}/release/delta - ./tests/test_raw_output_matches_git_on_full_repo_history $DELTA_BIN - ./tests/test_deprecated_options $DELTA_BIN > /dev/null - - name: Run executable - run: cargo run --release --target ${{ matrix.target }} -- < /dev/null - rustfmt: name: Rustfmt runs-on: ubuntu-latest diff --git a/src/features/hyperlinks.rs b/src/features/hyperlinks.rs index fb7c16775..baa742ad4 100644 --- a/src/features/hyperlinks.rs +++ b/src/features/hyperlinks.rs @@ -124,6 +124,16 @@ mod tests { "delta.__workdir__".to_string(), GitConfigEntry::Path(PathBuf::from("/working/directory")), ); + dbg!(format!( + "\x1b]8;;file://{}\x1b\\link-text\x1b]8;;\x1b\\", + Path::new("/working/directory/relative/path/file.rs").to_string_lossy() + )); + dbg!(format_osc8_file_hyperlink( + "relative/path/file.rs", + None, + "link-text", + &config + )); assert_eq!( format!( "\x1b]8;;file://{}\x1b\\link-text\x1b]8;;\x1b\\",