Skip to content

Add verbose logging to setup.sh #396

Description

@vasilich6107

This specific part is tricky it downloads archive if flutter/bin/flutter is not executable probably we are missing verbose logging on what is happening

if [ ! -x "$CACHE_PATH/flutter/bin/flutter" ]; then
	if [ "$CHANNEL" = "master" ] || [ "$CHANNEL" = "main" ]; then
		git clone -b "$CHANNEL" "$GIT_SOURCE" "$CACHE_PATH/flutter"
		if [ "$VERSION" != "any" ]; then
			git config --global --add safe.directory "$CACHE_PATH/flutter"
			(cd "$CACHE_PATH/flutter" && git checkout "$VERSION")
		fi
	else
		archive_url=$(echo "$VERSION_MANIFEST" | jq -r '.archive')
		download_archive "$archive_url" "$CACHE_PATH"
	fi
fi

I have

Cache hit for: flutter-linux-stable-3.38.1-x64-b45fa18946ecc2d9b4009952c636ba7e2ffbb787
Cache hit for: flutter-pub-linux-stable-3.38.1-x64-b45fa18946ecc2d9b4009952c636ba7e2ffbb787-20fb95bf939b6060016f3e5136789ca64aef876473b705230f96df6a3e9b3c40

and then

Run $GITHUB_ACTION_PATH/setup.sh \
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 13 1394M   13  187M    0     0   243M      0  0:00:05 --:--:--  0:00:05  243M
 32 1394M   32  451M    0     0   256M      0  0:00:05  0:00:01  0:00:04  256M
 50 1394M   50  709M    0     0   257M      0  0:00:05  0:00:02  0:00:03  257M
 72 1394M   72 1005M    0     0   267M      0  0:00:05  0:00:03  0:00:02  267M
 81 1394M   81 1139M    0     0   239M      0  0:00:05  0:00:04  0:00:01  239M
100 1394M  100 1394M    0     0   250M      0  0:00:05  0:00:05 --:--:--  251M

seems like it downloads the flutter again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions