Skip to content

flashlight checksum mismatch #7

@magras

Description

@magras

When building lantern-headless-client I'm seeing this error:

 > [4/4] RUN go build -v:                                                                                                                                                                       
0.196 go: downloading github.com/alexflint/go-arg v1.4.3                                                                                                                                        
0.196 go: downloading github.com/BurntSushi/toml v1.2.1                                                                                                                                         
0.196 go: downloading github.com/getlantern/appdir v0.0.0-20200615192800-a0ef1968f4da                                                                                                           
0.201 go: downloading github.com/getlantern/flashlight/v7 v7.6.240                                                                                                                              
0.539 verifying github.com/getlantern/flashlight/v7@v7.6.240: checksum mismatch
0.539 	downloaded: h1:fnrzq+J7RC5+jNMsx+QBbm/k1+lSi60LQMBux1Nsavs=
0.539 	go.sum:     h1:ZuhYT2HtFWchwa+nntlTBFGVtY7KI/+sv/U0uJSQF9E=
0.539 
0.539 SECURITY ERROR
0.539 This download does NOT match an earlier download recorded in go.sum.
0.539 The bits may have been replaced on the origin server, or an attacker may
0.539 have intercepted the download attempt.
0.539 
0.539 For more information, see 'go help module-auth'.
------
Dockerfile.test:4
--------------------
   2 |     WORKDIR /app
   3 |     COPY . .
   4 | >>> RUN go build -v
   5 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c go build -v" did not complete successfully: exit code: 1

I had encountered this error with earlier releases and the main client: lantern-client.

Steps to reproduce:

  1. Clean the repo from existing artifacts or make a new clone.

  2. Create Dockerfile.test in project root:

    FROM golang:trixie
    WORKDIR /app
    COPY . .
    RUN go build -v
    
  3. Execute docker build . -f Dockerfile.test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions