Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: --apihost flag limitations

Aperta
#129 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia riproducendo slack deploy --apihost=api.your.test.endpoint -vv e segui la gestione di --apihost da parte del comando di deploy e la configurazione di SLACK_API_URL. Il lavoro è completato quando la CLI gestisce correttamente il prefisso api. oppure informa chiaramente l'utente che il valore viene rifiutato; verifica il comportamento con e senza quel prefisso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Description

The --apihost flag is mainly used by the maintainers of this project to test various use cases. Using it as follows --apihost=api.shhhh.slack.com mostly works as expected. But when combine with the deploy command having the api domain prefix breaks the logic that sets the SLACK_API_URL environment variable

Version
Using lack v3.3.0
OS Info
ProductName:            macOS
ProductVersion:         15.5
BuildVersion:           24F74
Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
Steps to reproduce:

Share the commands to run, source code, and project settings:

  1. Create an app
  2. Use commands with the --apihost flag set to a value prefixed with api.
    a. everything should work as expected
  3. Use slack deploy --apihost=api.your.test.endpoint -vv
  4. No error is raised and no trace of a request to set the SLACK_API_URL environment variable can be found
  5. If the flag value is set without the api prefix the SLACK_API_URL environment variable is set and things work as expected
Expected result:

If the apihost value is rejected the CLI expects then we should inform the user

Actual result:

Nothing indicates that the apihost value is rejected by the CLI

Requirements
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
Lingua principale
Go
Stelle
305
Fork
46
Merge medio
1g 11h
PR unite (30g)
23

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di slackapi/slack-cli

Tutte le issue di slackapi/slack-cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.