Repository initialization has hard assumptions
Đá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
- 35/100
Hướng nghiên cứu
Bắt đầu với init.sh và chạy lệnh khởi tạo được báo cáo, sau đó kiểm tra go.mod và fn.go để theo dõi cách module và các đường dẫn import được thay đổi. Hoàn thành khi chấp nhận một đường dẫn module Go đầy đủ và cập nhật nhất quán go.mod, fn.go cùng các tham chiếu đến function-template-go, bao gồm cả các thay thế trong example/*.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What Happened?
I've cloned the repository and run ./init.sh my-cool-fn. The init.sh script is currently only changing the package names but not updating the Go module path. Updating the Go module path is essential for the package to function properly and to facilitate hosting on GitHub/GitLab.
Proposal
I expect the init.sh script to take the Go module path as its first argument. This will ensure that both the import paths and the Go module paths are updated correctly. To maintain compatibility with the example/* replacements, we can extract and use the last segment of the path as the package name.
- Clone or download the repository.
- Run
./init.sh github.com/my-fancy-org/my-cool-fn. - Should update as following:
go.modgets updated togithub.com/my-fancy-org/my-cool-fn.fn.gogets updated togithub.com/my-fancy-org/my-cool-fn/input/v1beta1.- Replace
function-template-gowithmy-cool-fn
Steps to Reproduce
- Clone or download the repository.
- Run
./init.sh my-cool-fn. - Verify the following:
go.modgets updated togithub.com/crossplane/my-cool-fn.fn.gogets updated togithub.com/crossplane/my-cool-fn/input/v1beta1.
Environment Details
- Function version: main branch
- Ngôn ngữ chính
- Go
- Star
- 40
- Fork
- 38
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có 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 crossplane/function-template-go
-
Standardize environment variablesCó thể đã có người làm @fernandezcuesta đã nhận 98 ngày trước. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Update package metadata to v1Đang mởenhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 48/100
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
crossplane/function-template-go#48 · 3 bình luận ·
-
Dependency DashboardĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 15/100
Tất cả issue của crossplane/function-template-go
Issue tương tự
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kubevirt/kubevirt#19559 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug raised-by:verifier
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
medici-finance/assay#3817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation models
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
gtsteffaniak/filebrowser#3244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
QuantumNous/new-api#7930 ·
Maintainer thường phản hồi trong vòng 1 ngày