sul-dlss-deprecated / taco

Apache License 2.0
10 stars 7 forks source link

Schema validations don't work in Docker #339

Closed jcoyne closed 6 years ago

jcoyne commented 6 years ago
taco_1        | 2018/03/16 21:53:34 TACO_PORT: Using default [8080].
taco_1        | panic: open /go/src/github.com/sul-dlss-labs/taco/maps/DepositResource.json: no such file or directory
taco_1        |
taco_1        | goroutine 1 [running]:
taco_1        | github.com/sul-dlss-labs/taco/validators.NewDepositResourceValidator(0xff7e40, 0xc4203f9120, 0xc420462600, 0x3f, 0x3f)
cmharlow commented 6 years ago

Is someone working on this?

cmharlow commented 6 years ago

looking at go generate to possibly deal with this. Not meaning to block anyone else from working on this either.

jcoyne commented 6 years ago

The expedient way to fix this would be to have a bigger container that has an operating system. This fix could be done in a few hours. Working on a generator to generate this into code would probably take several days. Which way do we want to go?

cmharlow commented 6 years ago

@eefahy can you chime in on this.

@jcoyne have you looked into this at all in your spare time between actionable tickets? what are you basing your estimations on?

aaron-collier commented 6 years ago

Would we have to write a generator for this, or as a proof-of-concept couldn't we instead include them as static big strings or something for the time being? Not ideal or elegant but I would assume should work.