Skip to content

Fail when process /tools/install-arduino.sh as bug in config.sh  #247

Closed
@twischi

Description

@twischi

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

Clone all needed stuff from GH resources before start building

Actual behavior (suspected bug)

install-arduiono.sh fails, as $AR_REPO_URL is invalid url.

  • Installing/Updating ESP-IDF and all components...
    Updating TinyUSB...
    Already up to date.
    Updating ESP32 Arduino...
    AR_BRANCH='release/v3.1.x'
    error: pathspec 'release/v3.1.x' did not match any file(s) known to git

Error logs or terminal output

* Installing/Updating ESP-IDF and all components...
Updating TinyUSB...
Already up to date.
Updating ESP32 Arduino...
Current Branch: release/v5.3
AR_BRANCH='release/v5.3'
Already on 'release/v5.3'
Your branch is up to date with 'origin/release/v5.3'.
Already up to date.
ESP-IDF is not installed! Installing local copy
Cloning into 'esp-idf'...
Username for 'https://github.com': ^[[A^[[A^C
thomas@iMac2TW esp32-arduino-lib-builder % git checkout master                                                              
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
thomas@iMac2TW esp32-arduino-lib-builder % ./build.sh -t esp32h2,esp32s3,esp32c3,esp32 -A "release/v3.1.x" -I "release/v5.3"                   
TARGET(s): esp32h2 esp32s3 esp32c3 esp32
* Installing/Updating ESP-IDF and all components...
Updating TinyUSB...
Already up to date.
Updating ESP32 Arduino...
AR_BRANCH='release/v3.1.x'
error: pathspec 'release/v3.1.x' did not match any file(s) known to git
thomas@iMac2TW esp32-arduino-lib-builder % git checkout release/v5.3                                                        
Switched to branch 'release/v5.3'
Your branch is up to date with 'origin/release/v5.3'.
thomas@iMac2TW esp32-arduino-lib-builder % ./build.sh -t esp32h2,esp32s3,esp32c3,esp32 -A "release/v3.1.x" -I "release/v5.3"
TARGET(s): esp32h2 esp32s3 esp32c3 esp32
* Installing/Updating ESP-IDF and all components...
Updating TinyUSB...
Already up to date.
Updating ESP32 Arduino...
AR_BRANCH='release/v3.1.x'
error: pathspec 'release/v3.1.x' did not match any file(s) known to git

Steps to reproduce the behavior

  1. Cloned this repo (as normal user)
  2. Launch ./build.sh
    (Both fails no arguments & "-t esp32h2,esp32s3,esp32c3,esp32 -A "release/v3.1.x" -I "release/v5.3"")
  3. Abort when try to load with /tools/install-arduino.sh

Project release version

master

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

MacOS

Operating system version

Monterey

Shell

Bash

Additional context

I found and fixed the bug already!

the problem is in:
https://github.com/espressif/esp32-arduino-lib-builder/blob/master/tools/config.sh

The variable $GITHUB_REPOSITORY_OWNER is not set, so are AR-variables are invalid.

Owner of the target ESP32 Arduino repository

AR_USER="$GITHUB_REPOSITORY_OWNER"

The full name of the repository

AR_REPO="$AR_USER/arduino-esp32"
IDF_REPO="$AR_USER/esp-idf"
AR_LIBS_REPO="$AR_USER/esp32-arduino-lib-builder"

---- If fixed this with just change to:

Owner of the target ESP32 Arduino repository

AR_USER="espressif"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions