1

Quickstart has a step to include the endpoint library under lib directory.

When deploying apparently the packages that are getting installed in this directory are conflicting with AppEngine environment.

After "Generating the OpenAPI configuration file", and before deploying I deleted the 'lib' directory.

I haven't noticed any issues so far.

Is there any potential problem with not pushing the packages under 'lib' directory along with your App code?

HondaGuy
  • 1,251
  • 12
  • 29
sam
  • 777
  • 2
  • 6
  • 19

1 Answers1

1

The files in the lib directory allow you to extend GAE beyond its built in third-party libraries. Per the documentation on the subject, you do need to upload any third-party libraries that you wish to use.

Cloud Endpoints Frameworks v2 recently came out of beta, so it is entirely possible that it is now included in the built in libraries, but that's not something should be counted on as the package endpoints 2.0 is not currently listed as being available in the documentation.

So, to answer your question, yes, there are certainly serious problems that you could run into by not including the lib folder. For libraries that are not known to be built in, it seems to me that it would be wise to control the versions you need via the lib folder.

Further info, per @Dan Cornilescu's comment:

If you need to use a built in library, you should list it in the libraries: section of your app.yaml, as detailed in the app.yaml documentation.

HondaGuy
  • 1,251
  • 12
  • 29
  • Wouldn't a built-in library have to also be explicitly listed in the `libraries` section of the service's `.yaml` file to be accessible in the service's code? – Dan Cornilescu Feb 23 '17 at 04:31
  • Yes! Good catch. I should have mentioned that as well. I'll edit my answer. – HondaGuy Feb 23 '17 at 04:48
  • Thanks @HondaGuy and Dan. I already had 'endpoints' added to 'libraries' and so far that seems to be working when I deployed without 'that lib' folder. – sam Feb 23 '17 at 06:58