From 995aae2621a79b7dbc748773d3a8ac7711010665 Mon Sep 17 00:00:00 2001 From: Greg Soltis Date: Mon, 20 Mar 2023 22:14:31 -0700 Subject: [PATCH] Revert rust scm usage (#4277) ### Description Drop hook to rust implementation of scm. There is an error with `turbo-ignore` ### Testing Instructions Existing unit + integration tests --- cli/internal/scm/git_go.go | 3 --- cli/internal/scm/git_rust.go | 28 ---------------------------- 2 files changed, 31 deletions(-) delete mode 100644 cli/internal/scm/git_rust.go diff --git a/cli/internal/scm/git_go.go b/cli/internal/scm/git_go.go index 1e5060895f0bc..f3decd8a5237e 100644 --- a/cli/internal/scm/git_go.go +++ b/cli/internal/scm/git_go.go @@ -1,6 +1,3 @@ -//go:build go || !rust -// +build go !rust - // Package scm abstracts operations on various tools like git // Currently, only git is supported. // diff --git a/cli/internal/scm/git_rust.go b/cli/internal/scm/git_rust.go deleted file mode 100644 index 7860b6bd48cd9..0000000000000 --- a/cli/internal/scm/git_rust.go +++ /dev/null @@ -1,28 +0,0 @@ -// Package scm abstracts operations on various tools like git -// Currently, only git is supported. -// -// Adapted from https://github.com/thought-machine/please/tree/master/src/scm -// Copyright Thought Machine, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -//go:build rust -// +build rust - -package scm - -import ( - "github.com/vercel/turbo/cli/internal/ffi" -) - -// git implements operations on a git repository. -type git struct { - repoRoot string -} - -// ChangedFiles returns a list of modified files since the given commit, optionally including untracked files. -func (g *git) ChangedFiles(fromCommit string, toCommit string, monorepoRoot string) ([]string, error) { - return ffi.ChangedFiles(g.repoRoot, monorepoRoot, fromCommit, toCommit) -} - -func (g *git) PreviousContent(fromCommit string, filePath string) ([]byte, error) { - return ffi.PreviousContent(g.repoRoot, fromCommit, filePath) -}