Group Abstract Group Abstract

Message Boards Message Boards

1
|
14.1K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

How to enforce priority on custom directory over paclets default repository

Posted 8 years ago
POSTED BY: Kuba Podkalicki
3 Replies

Did you get an answer to this question? I recently put my package into a paclet and don't know how to control which one loads. Do I have to provide the full path now when I do Get["mypackage"]?

POSTED BY: Eric Smith

No I did not.

To force loading from the workspace rather than the default paclets directory I tend to do

PacletUninstall /@ PacletFind @ "name"

It can only uninstall from default repo so don't worry about the workspace.

If you have multiple development versions simultaneously on path, then I don't know. I only one development version and to switch I checkout different commits/branches in git. Then RebuildPacletData[] updates.

The problem with Get @ absolute/path is that it will not affect Get calls inside your paclet. So if you have Get @ name`name` then it will point somewhere else.

POSTED BY: Kuba Podkalicki

Hello from 2024!

We are struggling with the same problem. It breaks the whole idea of having local version fixed packages in the project. Most projects PacletUninstall is the only solution

POSTED BY: Kirill Vasin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard