# Bumping package version after Artifact update

**URL:** https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522
**Category:** General Usage
**Tags:** artifacts
**Created:** [October 30, 2022, 2:12pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522 "2022-10-30T14:12:47Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 30, 2022, 2:12pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/1 "2022-10-30T14:12:47Z")

</div>

If I update the source of the artifact (.tar.gz file in another repo) that the package depends upon, do I need to bump the package version? Or will the artifact system automatically see, that the source has changed and will redownload the artifact?

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 30, 2022, 2:23pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/2 "2022-10-30T14:23:38Z")

</div>

\_jll has versions too as long as the comp in Project.toml allows you don’t have to bump anything manually?

---

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [October 30, 2022, 2:43pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/3 "2022-10-30T14:43:04Z")

</div>

@jling I don’t think jll packages are relevant here at all, the question seems to be about artifacts.

@Gregstrq yes, you need to update Artifacts.toml with the new URL and hash of the artifact. If the URL stays the same and the content changes, then old versions of the package would fail - please don’t do that! After updating Artifacts.toml, you do need to update Project.toml as well, releasing a new package version.

---

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 30, 2022, 3:15pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/4 "2022-10-30T15:15:50Z")

</div>

The url stays the same, but the contents will change. Do I understand correctly that the older version would fail because the sha key is changed when the content is altered?

---

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 30, 2022, 3:18pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/5 "2022-10-30T15:18:27Z")

</div>

@aplavin How can I change url? Tag the repo with artifact source and bump the tag when I update tge contents?

---

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [October 30, 2022, 5:27pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/6 "2022-10-30T17:27:42Z")

</div>

> [@Gregstrq](#):
>
> The url stays the same, but the contents will change. Do I understand correctly that the older version would fail because the sha key is changed when the content is altered?

Yes: the old version would download the archive, check its sha vs Artifacts.toml, and fail because these hashes don’t match.

> [@Gregstrq](#):
>
> @aplavin How can I change url?

It depends on where you host it. Check the service documentation on how to put the new archive at a different url.

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 30, 2022, 8:03pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/7 "2022-10-30T20:03:15Z")

</div>

since \_jll uses artifact mechanism I was guessing there’s a change they are referring to the artifact we download for \_jll

---

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 30, 2022, 9:21pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/8 "2022-10-30T21:21:52Z")

</div>

I host it in another githab repo.

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [October 31, 2022, 2:42am UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/9 "2022-10-31T02:42:01Z")

</div>

> [@Gregstrq](#):
>
> The url stays the same, but the contents will change.

That’s a terrible practice, it makes things unreproducible, please refrain from doing it. URLs should be versioned and persistent, the content they point to should never, ever, change.

---

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 31, 2022, 7:36am UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/10 "2022-10-31T07:36:28Z")

</div>

My artifact sits in another github repo.

> [@giordano](#):
>
> URLs should be versioned and persistent

How precisely do I do it with github repo? Do I need to tag different versions? Do I need to setup Artifact.toml with github permalink? Will permalink change when I push new commits?

---

<div class="post-metadata">

### Author: ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)
#### Post date: [October 31, 2022, 1:01pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/11 "2022-10-31T13:01:25Z")

</div>

The file in question is about 2.5 MB large, in compressed form only 310 KB. Why not make it directly a part of your package?

---

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [October 31, 2022, 4:30pm UTC](https://discourse.julialang.org/t/bumping-package-version-after-artifact-update/89522/12 "2022-10-31T16:30:35Z")

</div>

Because Pkg docs point out that data files should be loaded up as Artifacts. It is what Artifacts were designed for.
