Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Linting fails after forking and cloning

オープン
#96 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
go
領域
cli

調査の方向性

報告された govet エラーが fmt.Sprintf 呼び出しで発生している pkg/classroom/classroom.go:144 から始めてください。変更の前後で golangci-lint run と go test -v ./... を実行してください。lint エラーが解消され、テストスイートが引き続き成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I was going to fix the error in CONTRIBUTING.md I mentioned in Issue #95. The golangci-lint run command results in the following...

gh-classroom on  main via 🐹 v1.23.6 took 18s
golangci-lint run
pkg/classroom/classroom.go:144:21: printf: non-constant format string in call to fmt.Sprintf (govet)
return fmt.Sprintf(a.Classroom.Url)

Context

Platform

MacOS
Also replicated it on CachyOS Linux (Arch based distro)

Submitting a pull request
  1. [Fork](https://github.com/github/gh-classroom/fork) and clone the repository
    
  2. Configure and install the dependencies: `go mod tidy`
    
  3. Make sure the tests pass on your machine: `go test -v ./...`
    
  4. Make sure linter passes on your machine: `golangci-lint run`       <----- This line causes the error
    
  5. Create a new branch: `git checkout -b my-branch-name`
    
  6. Make your change, add tests, and make sure the tests and linter still pass
    
  7. Push to your fork and [submit a pull request](https://github.com/github/gh-classroom/compare)
    
  8. Please be patient while waiting for your pull request to be reviewed and merged.
    
主要言語
Go
スター
126
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-classroom のほかの issue

github/gh-classroom の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。