reads the product of makeSymlink on Windows
(path string)
| 730 | |
| 731 | // reads the product of makeSymlink on Windows |
| 732 | func readPathFromFile(path string) (string, error) { |
| 733 | f, err := os.Open(path) |
| 734 | if err != nil { |
| 735 | return "", err |
| 736 | } |
| 737 | defer f.Close() |
| 738 | b := make([]byte, 1024) |
| 739 | n, err := f.Read(b) |
| 740 | return strings.TrimSpace(string(b[:n])), err |
| 741 | } |
| 742 | |
| 743 | func isBinExtension(client *http.Client, repo ghrepo.Interface) (isBin bool, err error) { |
| 744 | var r *release |