Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshsadiq committed May 28, 2024
1 parent 5b4fa05 commit 0f0c523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 0f0c523

Please sign in to comment.