Skip to content

(Docker) error: Unexpected argument '/usr/bin/swift-build' #4

@iandundas

Description

@iandundas

I had swift package --disable-sandbox vercel deploy --prod working (successfully deploying to Vercel) last week, but today I went to run the same deploy command and got the error below.

I think Docker was updated in the interim, but otherwise I can't think of what changed.

I tried (rather cluelessly):

  • restarting Docker
  • deleting the docker container (so subsequent command re-downloaded it)
  • deleting the ./build folder
$ swift package --disable-sandbox vercel deploy --prod

-------------------------------------------------------------------------
Building product: "App"
-------------------------------------------------------------------------


/usr/local/bin/docker run --platform linux/x86_64 --rm -v /Users/ian/AppsDev/Experiments/VercelServerlessExperiment:/workspace -w /workspace swift:5.8-amazonlinux2 bash -cl swift build -c release -Xswiftc -Osize -Xlinker -S --product App --static-swift-stdlib --show-bin-path

  error: Unexpected argument '/usr/bin/swift-build'
Usage: swift build <options>
  See 'build -help' for more information.
error: /usr/local/bin/docker run --platform linux/x86_64 --rm -v /Users/ian/AppsDev/Experiments/VercelServerlessExperiment:/workspace -w /workspace swift:5.8-amazonlinux2 bash -cl swift build -c release -Xswiftc -Osize -Xlinker -S --product App --static-swift-stdlib --show-bin-path failed with code 64

Thanks for any pointers you might have :) great project!!

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