5B. [Repositories] Publishing and Using Shared Libraries in Code Repositories8. Add A Reference To Your Library

8 - Add a Reference to Your Library

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

📖 Task Introduction

Now that your library has been published, you can reference it throughout your Foundry environment using the package discovery mechanism described in exercise 1.

🔨 Task Instructions

  1. Open your flight_alerts_logic repository and create a new yourName/feature/update_cleaning_functions branch from Master.

  2. Click the Libraries icon on the upper left area of your screen (ref: exercise 1).

  3. In the Search Libraries... field, type the name of your shared library. Remember, the name of the library is the name of the shared library repository and any underscore characters have been replaced by hyphens. For example, if your shared library repository was jmeier_cleaning_functions, you should search for jmeier-cleaning-functions.

    • If you don’t see your library in the list, return to your shared library repository and ensure you correctly completed the steps in the previous task.
  4. Click your library when it appears and then on the blue Add Library button to the right.

  5. Commit your code with a message such as "feature: add cleaning lib ref".