Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion doc/conan.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,40 @@ Ordering issues may arise during batch conversion.

Remove `lib` prefix.

However, this may cause naming conflicts and needs to be verified.
However, this cause naming conflicts.

with follow program verification:

```go
func main() {
names := make(map[string][]string)
dirs, err := os.ReadDir("./recipes")
if err != nil {
panic(err)
}
for _, pkg := range dirs {
if pkg.IsDir() {
pkgnoLib := strings.TrimPrefix(pkg.Name(), "lib")
names[pkgnoLib] = append(names[pkgnoLib], pkg.Name())
}
}
for name, pkgs := range names {
if len(pkgs) > 1 {
fmt.Println(name, pkgs)
}
}
}
```
we got some conflict name

```bash
❯ go run main.go
tar [libtar tar]
serial [libserial serial]
vdpau [libvdpau vdpau]
b2 [b2 libb2]
gettext [gettext libgettext]
```

### 5. Demo Validation

Expand Down