happy-kitchen-89482
06/22/2017, 5:19 PMhigh-advantage-47550
06/22/2017, 5:20 PMhappy-kitchen-89482
06/22/2017, 5:24 PMhappy-kitchen-89482
06/22/2017, 5:25 PMwitty-crayon-22786
06/22/2017, 5:28 PMgreat-midnight-1044
06/22/2017, 6:10 PMgreat-midnight-1044
06/22/2017, 6:11 PMrough-minister-58256
06/22/2017, 8:14 PMwitty-crayon-22786
06/22/2017, 10:05 PM~/.cache/pants/**/*
cache very often.rough-minister-58256
06/22/2017, 10:11 PMrough-minister-58256
06/22/2017, 10:27 PMwitty-crayon-22786
06/22/2017, 10:32 PMgray-sugar-70433
06/23/2017, 2:32 AMresources
target to no avail. Neither could I find docs about it ๐witty-crayon-22786
06/23/2017, 6:10 PMgray-sugar-70433
06/23/2017, 8:51 PM./pants run backend/example
panics with data.txt not available
)
backend/example
โโโ BUILD
โโโ data.txt
โโโ main.go
Where backend is my go source root. Hereโs the go file (just in case).
// main.go
package main
import "io/ioutil"
func main() {
_, err := ioutil.ReadFile("data.txt")
if err != nil {
panic("data.txt not available")
}
}
And the BUILD file:
go_binary()
enough-analyst-54434
06/23/2017, 8:58 PMgray-sugar-70433
06/23/2017, 8:59 PMenough-analyst-54434
06/23/2017, 8:59 PMenough-analyst-54434
06/23/2017, 8:59 PMenough-analyst-54434
06/23/2017, 8:59 PMgray-sugar-70433
06/23/2017, 8:59 PMenough-analyst-54434
06/23/2017, 9:01 PM./pants bundle
for go, which would - in effect - respect the dist dir layout in a larger archive you could ship and unpackgray-sugar-70433
06/23/2017, 9:01 PMenough-analyst-54434
06/23/2017, 9:02 PMpurple-oil-45048
06/26/2017, 6:54 AMstraight-waiter-86090
06/26/2017, 1:56 PMstraight-waiter-86090
06/26/2017, 1:56 PM[cache]
read_from: ['<http://pantscache01.ci.runwaynine.com:8000>']
read: True
straight-waiter-86090
06/26/2017, 1:57 PM.cache
? Or should I add .cache to the read_from list? Is there any benefit to this?witty-crayon-22786
06/26/2017, 5:03 PMwitty-crayon-22786
06/26/2017, 5:04 PM