Skip to content

Contributing Is Missing Requirements #2771

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

Closed
greyscaled opened this issue Feb 25, 2021 · 7 comments · Fixed by #2775
Closed

Contributing Is Missing Requirements #2771

greyscaled opened this issue Feb 25, 2021 · 7 comments · Fixed by #2775
Assignees
Labels
docs Documentation related
Milestone

Comments

@greyscaled
Copy link
Contributor

Story

CI was failing on a PR so I ran yarn fmt locally as was suggested in the run output:

$ ./ci/dev/fmt.sh
Files need generation or are formatted incorrectly:
HEAD detached at c2de72a9
  modified:   docs/FAQ.md
  modified:   docs/install.md
Please run the following locally:
 yarn fmt
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

But I received:

./ci/dev/fmt.sh: line 7: shfmt: command not found

which implies there's a non standard package missing from the development requirements, shfmt.

I tried to inspect the image referenced in the contributing documents https://github.com/cdr/code-server/blob/v3.9.0/docs/CONTRIBUTING.md#requirements

But it's a dead link:

https://github.com/cdr/code-server/blob/v3.9.0/ci/images/debian8/Dockerfile

Screenshot from 2021-02-25 10-28-55

@greyscaled greyscaled added the docs Documentation related label Feb 25, 2021
@greyscaled
Copy link
Contributor Author

I'm happy to contribute this change with some guidance on which shfmt is required. A quick Google shows more than one package by that name:

Screenshot from 2021-02-25 10-38-32

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2021

@vapurrmaid remember when I had all those issues with getting Go to be included and work in my Coder env? This was the main root of the issue. I vote to replace shfmt with something else honestly.

@jsjoeio jsjoeio added this to the v3.9.2 milestone Feb 25, 2021
@code-asher
Copy link
Member

go get mvdan.cc/sh/v3/cmd/shfmt should get the right shfmt. We should definitely add this to the docs.

@code-asher
Copy link
Member

I'm also down for something else; feels odd you'd need go just to download a dep. Alternatively we make all dev commands run in our dev container so then the only dependency is Docker.

@code-asher
Copy link
Member

Also it looks like this happened because we merged a commit from a fork which didn't have CI running on it so we didn't catch the fmt error. So we should look into that as well.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2021

Agreed!

I'm also down for something else; feels odd you'd need go just to download a dep

I opened a separate issue: #2772

For the CI running on forks: #2559

Todo

For this issue,

  • update docs with contributing requirements and add go get mvdan.cc/sh/v3/cmd/shfmt

greyscaled added a commit that referenced this issue Feb 25, 2021
greyscaled added a commit that referenced this issue Feb 25, 2021
greyscaled added a commit that referenced this issue Feb 25, 2021
greyscaled added a commit that referenced this issue Feb 25, 2021
@jsjoeio jsjoeio linked a pull request Feb 25, 2021 that will close this issue
greyscaled added a commit that referenced this issue Feb 25, 2021
@greyscaled greyscaled self-assigned this Feb 25, 2021
greyscaled added a commit that referenced this issue Feb 25, 2021
@greyscaled
Copy link
Contributor Author

Closed in #2775

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

Successfully merging a pull request may close this issue.

3 participants