Skip to content

Is There a Better Way to Include Files Outside the Repository in GoReleaser Archives? #5313

Closed Answered by caarlos0
ryancurrah asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

Yeah, that is a good way to do it. You could also copy it to the root of the repo and add it to gitignore, which would also solve your 3rd point there.

GoReleaser doesn't have a feature to automatically import files that way, but it is a good suggestion, I think. Might be worth investigating 📓

The path looks correct to me, if the archive isn't right, you can also use something like:

archives:
  - 
    files:
      - src: dist/assets/wasm_exec.js
        dst: ./path/to/wasm_exec.js

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ryancurrah
Comment options

Answer selected by ryancurrah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants