# \#package-dev

**URL:** https://discourse.julialang.org/tag/package-dev/966.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Package Development: Why is Ref needed to pass a global constant to a function?](https://discourse.julialang.org/t/package-development-why-is-ref-needed-to-pass-a-global-constant-to-a-function/122566)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 13\
**Last updated:** [November 15, 2024, 7:47pm UTC](https://discourse.julialang.org/t/package-development-why-is-ref-needed-to-pass-a-global-constant-to-a-function/122566 "2024-11-15T19:47:05Z")

</div>

I currently have the following setup (which works great) but somehow seems inelegant: src/MyPackage.jl module MyPackage include("mysrc.jl") const CONFIG = Ref{Config}() end src/mysrc.jl @with\_kw struct Config a :…

---

## [Question on Dependency-Related Best Practice for Packages](https://discourse.julialang.org/t/question-on-dependency-related-best-practice-for-packages/98146)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 5\
**Last updated:** [May 1, 2023, 12:09pm UTC](https://discourse.julialang.org/t/question-on-dependency-related-best-practice-for-packages/98146 "2023-05-01T12:09:38Z")

</div>

Hello, I don’t know which of the following is the better option or what should be done. I am hoping someone can help me decide. I am developing PackageA. I have PackageB currently as a dependency of PackageA. Separatel…

---

## [Manging Local Package & Workflow](https://discourse.julialang.org/t/manging-local-package-workflow/77488)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 4\
**Last updated:** [March 7, 2022, 2:43pm UTC](https://discourse.julialang.org/t/manging-local-package-workflow/77488 "2022-03-07T14:43:39Z")

</div>

Hello, I have a package I am developing locally. I created the package using \] generate and have added it to a local registry so that I may share it easily with collaborators. Both the package and the local registry hav…
