Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 on leiningen download (gitea) #107

Open
recumbentbirder opened this issue Mar 7, 2024 · 1 comment
Open

404 on leiningen download (gitea) #107

recumbentbirder opened this issue Mar 7, 2024 · 1 comment

Comments

@recumbentbirder
Copy link

I'm using the attached actions file, trying to run on a Linux runner. (I added installation of zstd, because I got complaints about missing zstd around my problem ...). When it comes to installing Leiningen, I get the following error, regardless if I run the runner from binary or via docker.

::debug::Failed to download from "https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein". Code(404) Message(Not Found)

The URL is perfectly fine though when trying to fetch either on my machine directly, or in a runner's docker container.

Any idea on how to solve this?

Thanks for your software!
/christoph

name: Example Workflow for Clojure

on: [push]

jobs:

  clojure:
    runs-on: ubuntu-latest

    steps:
      - name: install zstd
        run: apt-get update && apt-get install -y zstd

      - name: Checkout
        uses: actions/checkout@v3

      # It is important to install java before installing clojure tools which needs java
      # exclusions: babashka, clj-kondo and cljstyle
      - name: Prepare java
        uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: '8'

      - name: Install clojure tools
        uses: DeLaGuardo/setup-clojure@12.5
        with:
          # Install just one or all simultaneously
          # The value must indicate a particular version of the tool, or use 'latest'
          # to always provision the latest version
          lein: 2.9.1                  # Leiningen
          
      # Optional step:
      - name: Cache clojure dependencies
        uses: actions/cache@v3
        with:
          path: |
            ~/.m2/repository
            ~/.gitlibs
            ~/.deps.clj
          # List all files containing dependencies:
          key: cljdeps-${{ hashFiles('deps.edn') }}
          # key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
          # key: cljdeps-${{ hashFiles('project.clj') }}
          # key: cljdeps-${{ hashFiles('build.boot') }}
          restore-keys: cljdeps-

      - name: Get leiningen version
        run: lein -v
@alec-drw
Copy link

alec-drw commented Oct 30, 2024

Also experiencing this issue, on Github Enterprise 3.10:

##[debug]checking cache: /opt/hostedtoolcache/Leiningen/2.9.1-12-5/x64
##[debug]not found
##[debug]Downloading https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein
##[debug]Destination /runner/_work/_temp/lein
##[debug]set auth
##[debug]Failed to download from "https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein". Code(404) Message(Not Found)
Error: Unexpected HTTP response: 404
##[debug]Checking zstd --quiet --version
##[debug]1.4.8
##[debug]zstd version: 1.4.8
##[debug]implicitDescendants 'false'
##[debug]followSymbolicLinks 'true'
##[debug]implicitDescendants 'false'
##[debug]omitBrokenSymbolicLinks 'true'
##[debug]Search path '/opt/hostedtoolcache/Leiningen'
##[debug]Cache Paths:
##[debug][]
##[debug]Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
##[debug]Node Action run completed with exit code 1

But can access https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein just fine outside of the action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants