microsoft / microsoft/vscode-containers

Doesn't recognize `--unpack` argument to `ADD`

Open
#297 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

language-server
Dominant language
TypeScript
Stars
139
Forks
87
Avg merge
9h 15m
Merged PRs (30d)
9

Description

Example:

# syntax=docker/dockerfile:1
FROM debian
ADD --unpack \
	https://github.com/asdf-vm/asdf/releases/download/v0.18.0/asdf-v0.18.0-linux-amd64.tar.gz \
	/usr/local/bin/

Gives red squiggles on the --unpack arg, even though it is valid so long as the # syntax=... directive is present.

The suggested fix to change it to --chown is particularly unhelpful 🙃

VSCode: 1.105.1
Extension version: 2.3.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report in VS Code 1.105.1 with extension version 2.3.0 using the Dockerfile example and its # syntax=docker/dockerfile:1 directive. Trace the diagnostic produced for ADD --unpack; done when this valid argument no longer receives a red squiggle or the misleading --chown suggestion.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.