bug: --apihost flag limitations
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện slack deploy --apihost=api.your.test.endpoint -vv và theo dõi cách lệnh deploy xử lý --apihost cũng như thiết lập SLACK_API_URL. Được xem là hoàn tất khi CLI xử lý đúng tiền tố api. hoặc thông báo rõ ràng cho người dùng rằng giá trị bị từ chối; hãy xác minh hành vi khi có và không có tiền tố đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
- Create an app
- Use commands with the
--apihostflag set to a value prefixed withapi.
a. everything should work as expected - Use
slack deploy --apihost=api.your.test.endpoint -vv - No error is raised and no trace of a request to set the
SLACK_API_URLenvironment variable can be found - If the flag value is set without the
apiprefix theSLACK_API_URLenvironment 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.
- Ngôn ngữ chính
- Go
- Star
- 305
- Fork
- 46
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 23
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của slackapi/slack-cli
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abort Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug build release
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
area:bolt-python bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
build code health
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
enhancement semver:minor
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của slackapi/slack-cli
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
JakeChampion/lang#10213 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100