Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source{d} CE v0.14.0-rc.1 doesn't seem to create ~/.sourced folder #160

Closed
gomesfernanda opened this issue Jul 23, 2019 · 2 comments · Fixed by #162
Closed

source{d} CE v0.14.0-rc.1 doesn't seem to create ~/.sourced folder #160

gomesfernanda opened this issue Jul 23, 2019 · 2 comments · Fixed by #162
Assignees
Labels
bug Something isn't working

Comments

@gomesfernanda
Copy link

When upgrading to version v0.14.0-rc.1 of source{d} CE, I followed

  1. the guideline on Releases section

Upgrading

For internal releases we don't support upgrading. If you have a previous sourced-ce version installed, clean up all your data before downloading this release. This will delete everything, including the UI data for dashboards, charts, users, etc:

sourced prune --all
rm -rf ~/.sourced
  1. then the instruction on source{d} CE Quickstart

On Linux or macOS

Extract sourced binary from the release you downloaded, and move it into your bin folder to make it executable from any directory:

$ tar -xvf path/to/sourced-ce_REPLACE-VERSION_REPLACE-OS_amd64.tar.gz
$ sudo mv path/to/sourced-ce_REPLACE-OS_amd64/sourced /usr/local/bin/

However, when I tried using source{d} CE, I got an error.

$ sourced init local ~/engine-srcd/repos/bblfsh
> /Users/fernandagomes/.sourced does not exist
> Cannot perform this action, source{d} needs to be initialized first with the 'init' sub command

Noticing that the folder didn't exist, I created it

$ mkdir /Users/fernandagomes/.sourced

and everything worked.

I believe there's a bug on this version, where it doesn't create this folder (~/.sourced) when the user initializes the tool.

@dpordomingo dpordomingo added the bug Something isn't working label Jul 23, 2019
@dpordomingo dpordomingo self-assigned this Jul 23, 2019
@dpordomingo
Copy link
Contributor

dpordomingo commented Jul 23, 2019

Ouch!, I didn't notice about that when reviewing https://github.com/src-d/sourced-ce/pull/153/files#diff-4a88fdaf8ab4c4ad4b300c67fd60be64R32
Many other commands failed, e.g. sourced compose download.

@dpordomingo
Copy link
Contributor

Thanks for reporting @gomesfernanda
The fix is already released by https://github.com/src-d/sourced-ce/releases/tag/v0.14.0-rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants