@@ -6,16 +6,16 @@ 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"
10
9
do_fossa_analyze [network ] = "1"
10
+ do_fossa_analyze [depends ] = "fossa-cli-native:do_populate_sysroot"
11
11
12
12
addtask do_fossa_test before do_build after do_fossa_analyze
13
13
do_fossa_test [doc ] = "Test via fossa-cli"
14
14
do_fossa_test [nostamp ] = "1"
15
- do_fossa_test [deptask ] += "fossa-cli:do_populate_sysroot"
16
15
do_fossa_test [network ] = "1"
16
+ do_fossa_test [deptask ] += "fossa-cli-native:do_populate_sysroot"
17
17
18
- # This task runs `fossa-cli` against the `fossa-deps` file generated by `fossa:do_fossa`,
18
+ # This task runs `fossa-cli-native ` against the `fossa-deps` file generated by `fossa:do_fossa`,
19
19
# analyzing the file and storing its results in the FOSSA backend.
20
20
#
21
21
# This task is run after `do_rootfs` is finalized (`fossa:do_fossa` runs as a post-processing
@@ -56,8 +56,10 @@ def run_fossa_cli(d, cli_args):
56
56
BINDIR = d . getVar ("bindir" )
57
57
WORKDIR = d . getVar ("WORKDIR" )
58
58
59
- cli_path = (f "{WORKDIR}/recipe-sysroot{BINDIR}/fossa" )
60
- cmds = [cli_path ] + cli_args
59
+ # We don't need to specify the whole path here. The sysroot-native
60
+ # directory is already in our PATH.
61
+ fossa_cli = ("fossa" )
62
+ cmds = [fossa_cli ] + cli_args
61
63
bb . plain (f "running: {' '.join(cmds)}" )
62
64
63
65
out = subprocess . run (cmds , cwd = d . getVar ("FOSSA_STAGING_DIR" ), capture_output = True , text = True , shell = False )
0 commit comments