Commit f5654c8
authored
[bug] fix downloader for go binary (#1797)
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Fix downloader for Go binaries by updating library filename format and
handling OS/architecture specifics in `lib.go`.
>
> - **Behavior**:
> - Update `getTargetLibFilename()` in `lib.go` to use `libbaml_cffi`
and format filenames with `targetTriple` for different OS and
architectures.
> - Add `isMusl()` function in `lib.go` to determine musl libc usage
(not yet implemented).
> - Modify error message in `downloadBamlLibrary()` in `lib.go` to
include 'v' prefix in version tag for 404 errors.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 0e7c34b. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent 1cf28bb commit f5654c8
1 file changed
+34
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
342 | 359 | | |
343 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
344 | 368 | | |
345 | 369 | | |
346 | 370 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
356 | 377 | | |
357 | 378 | | |
358 | 379 | | |
359 | | - | |
| 380 | + | |
360 | 381 | | |
361 | 382 | | |
362 | 383 | | |
| |||
388 | 409 | | |
389 | 410 | | |
390 | 411 | | |
391 | | - | |
| 412 | + | |
392 | 413 | | |
393 | 414 | | |
394 | 415 | | |
| |||
0 commit comments