Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

bug: --apihost flag limitations

Abierto
#129 3 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #661 de @mvanhorn — cerrado sin fusionar

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
cli

Línea de trabajo

Comienza reproduciendo slack deploy --apihost=api.your.test.endpoint -vv y sigue el procesamiento de --apihost del comando de deploy y la configuración de SLACK_API_URL. Se considera terminado cuando la CLI maneja correctamente el prefijo api. o informa claramente al usuario de que el valor se rechaza; verifica el comportamiento con y sin ese prefijo.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Go
Estrellas
309
Forks
47
Merge medio
13 h 46 min
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de slackapi/slack-cli

Todos los issues de slackapi/slack-cli

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.