Skip to content

Commit f47a2da

Browse files
fix: juju build failure (#13094)
The parse constraint function was moved to a better location, but the fuzzer wasn't updated. This fixes: https://issues.oss-fuzz.com/issues/42538415
1 parent 15c11d7 commit f47a2da

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

projects/juju/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
FROM gcr.io/oss-fuzz-base/base-builder-go
1818
RUN git clone --depth 1 https://github.com/juju/juju
19-
COPY build.sh storage_fuzzer.go $SRC/
19+
COPY build.sh devices_fuzzer.go $SRC/
2020
WORKDIR $SRC/juju

projects/juju/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ go mod download
2020
find /root/go/pkg/mod/github.com/aws/aws-sdk-go-v2 -name "*fuzz.go" -exec rm -rf {} \;
2121

2222
# Compile fuzzer:
23-
mv $SRC/storage_fuzzer.go $SRC/juju/storage/
24-
compile_go_fuzzer github.com/juju/juju/storage Fuzz storage_fuzzer
23+
mv $SRC/devices_fuzzer.go $SRC/juju/core/devices/
24+
compile_go_fuzzer github.com/juju/juju/core/devices Fuzz devices_fuzzer

projects/juju/storage_fuzzer.go renamed to projects/juju/devices_fuzzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
//
1515

16-
package storage
16+
package devices
1717

1818
func Fuzz(data []byte) int {
1919
_, err := ParseConstraints(string(data))

0 commit comments

Comments
 (0)