Skip to content

script failing on appcenter (cannot find nuget) #87

Description

@roubachof

Hi Jonathan !
I tried to use boots to be able to compile C# 9 on appcenter and used it like this:

# App Center custom build scripts: https://aka.ms/docs/build/custom/scripts

export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

dotnet tool install --global boots

# Workaround instead of restarting shell
# see: https://github.com/dotnet/cli/issues/9114#issuecomment-494226139
export PATH="$PATH:~/.dotnet/tools"
export DOTNET_ROOT="$(dirname "$(readlink "$(command -v dotnet)")")"

# https://www.mono-project.com/download/stable/#download-mac
boots https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.145.macos10.xamarin.universal.pkg

# https://github.com/xamarin/xamarin-android
boots https://aka.ms/xamarin-android-commercial-d16-8-macos

The post clone step is doing fine and retrieve successfully the 2 sdks.
BUT, when it hits the nuget restore step, it fails with the following logs:

##[section]Starting: Restore Nuget
==============================================================================
Task         : Command Line
Description  : Run a command line with arguments
Version      : 1.1.3
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
[command]/bin/bash -c /usr/bin/find . -name '*.sln' -type f -print0 | /usr/bin/xargs -0 grep -l 'Operation.Stealth.Android.csproj' | /usr/bin/xargs -I '{}' nuget restore '{}' -DisableParallelProcessing
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:3225) Warning: Use Cipheriv for counter mode of aes-256-ctr
xargs: nuget: No such file or directory
##[error]/bin/bash failed with return code: 127
##[error]/bin/bash failed with error: /bin/bash failed with return code: 127

Maybe I need to install a nuget command line with boots ?
The boots step is breaking the usage of nuget ?

I must be missing something.

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