@@ -6,14 +6,14 @@ inherit fossa_utils
6
6
addtask do_fossa_analyze before do_build after do_rootfs
7
7
do_fossa_analyze [doc ] = "Analyze via fossa-cli"
8
8
do_fossa_analyze [nostamp ] = "1"
9
- do_fossa_analyze [depends ] = "fossa-cli:do_populate_sysroot"
9
+ do_fossa_analyze [depends ] = "fossa-cli-native :do_populate_sysroot"
10
10
11
11
addtask do_fossa_test before do_build after do_fossa_analyze
12
12
do_fossa_test [doc ] = "Test via fossa-cli"
13
13
do_fossa_test [nostamp ] = "1"
14
- do_fossa_test [deptask ] += "fossa-cli:do_populate_sysroot"
14
+ do_fossa_test [deptask ] += "fossa-cli-native :do_populate_sysroot"
15
15
16
- # This task runs `fossa-cli` against the `fossa-deps` file generated by `fossa:do_fossa`,
16
+ # This task runs `fossa-cli-native ` against the `fossa-deps` file generated by `fossa:do_fossa`,
17
17
# analyzing the file and storing its results in the FOSSA backend.
18
18
#
19
19
# This task is run after `do_rootfs` is finalized (`fossa:do_fossa` runs as a post-processing
@@ -54,8 +54,8 @@ def run_fossa_cli(d, cli_args):
54
54
BINDIR = d . getVar ("bindir" )
55
55
WORKDIR = d . getVar ("WORKDIR" )
56
56
57
- cli_path = (f "{WORKDIR}/recipe-sysroot{BINDIR}/ fossa" )
58
- cmds = [cli_path ] + cli_args
57
+ fossa_cli = (" fossa" )
58
+ cmds = [fossa_cli ] + cli_args
59
59
bb . plain (f "running: {' '.join(cmds)}" )
60
60
61
61
out = subprocess . run (cmds , cwd = d . getVar ("FOSSA_STAGING_DIR" ), capture_output = True , text = True , shell = False )
0 commit comments