Skip to content

Commit

Permalink
Fix pipeline errors in creating UPS patch
Browse files Browse the repository at this point in the history
```
go: downloading github.com/rameshvarun/ups v0.2.1
go: downloading github.com/urfave/cli/v2 v2.4.10
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.1
go: downloading github.com/russross/blackfriday/v2 v2.1.0
fatal: detected dubious ownership in repository at '/__w/FEHRR/FEHRR'
To add an exception for this directory, call:

	git config --global --add safe.directory /__w/FEHRR/FEHRR
Creating UPS patch...
Incorrect Usage: flag provided but not defined: -b

NAME:
   ups diff - Diff two files, creating a UPS patch.

USAGE:
   ups diff [command options] [arguments...]

OPTIONS:
   --base value      The base file.
   --modified value  The modified file.
   --output value    The file in which to write the patch data.
   --help, -h        show help (default: false)

panic: flag provided but not defined: -b

goroutine 1 [running]:
main.main()
	/github/home/go/pkg/mod/github.com/rameshvarun/ups@v0.2.1/main.go:147 +0x66d
Error: Failed to create UPS patch!
Error: Process completed with exit code 3.
```

https://github.com/laqieer/FEHRR/actions/runs/10523216696/job/29157462101#step:10
  • Loading branch information
laqieer committed Aug 23, 2024
1 parent 8fa64c5 commit 723700d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ jobs:
- name: Check ROM size
run: apt-get install -y bc && ./check_rom_size.sh

- uses: actions/setup-go@v5
- name: Create UPS patch
uses: actions/setup-go@v5
with:
go-version: '1.16'
- run: go get github.com/rameshvarun/ups && ./create_ups_patch.sh
- run: git config --global --add safe.directory /__w/FEHRR/FEHRR && go get github.com/rameshvarun/ups && ./create_ups_patch.sh

- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion create_ups_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

# Create the UPS patch
echo "Creating UPS patch..."
ups diff -b "$baserom" -m "$fehrr" -o "$patch"
ups diff --base "$baserom" --modified "$fehrr" --output "$patch"

# Check if the patch was created successfully
if [ $? -eq 0 ]; then
Expand Down

0 comments on commit 723700d

Please sign in to comment.