From 0f0c5237c97fda8fe463588659d43272b7837b09 Mon Sep 17 00:00:00 2001 From: Hosh Sadiq Date: Tue, 28 May 2024 11:41:00 +0100 Subject: [PATCH] Fix build --- .github/workflows/build.yml | 11 ++++++----- main.go | 4 ---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f3ff8f..242ba58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,16 +2,17 @@ name: build on: push: + jobs: build: - defaults: - run: - working-directory: "/go/src/github.com/launchdarkly/go-options" runs-on: ubuntu-latest container: image: golang steps: - uses: actions/checkout@v4.1.0 - - run: sudo apt-get install python-pip - - run: sudo pip install pre-commit + - run: | + whoami + cat /etc/os-release + - run: apt-get update && apt-get install -y python3-pip + - run: pip install pre-commit --break-system-packages - run: make test diff --git a/main.go b/main.go index bdc4dfe..4883768 100644 --- a/main.go +++ b/main.go @@ -91,10 +91,6 @@ func main() { flag.CommandLine.ErrorHandling() types := flag.Args() - initOptions(types) -} - -func initOptions(types []string) { if optionPrefix != "" && optionSuffix != "" { log.Fatal("cannot specify both -prefix and -suffix options") }