Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

[BUG]Local Formula #148

Closed
KelsonCarmozine opened this issue Jun 5, 2020 · 9 comments
Closed

[BUG]Local Formula #148

KelsonCarmozine opened this issue Jun 5, 2020 · 9 comments
Labels
🪲 bug Report a bug encountered while operating Ritchie 🆘 help wanted Extra attention is needed waiting reply Waiting for an answer to a comment

Comments

@KelsonCarmozine
Copy link

What happened:
When I try execute a local Formula, it try start download and get a error:

~ >>> rit challenge test
2020/06/05 13:33:42 Download formula...
Error: Get "/challenge/test/linux.zip": unsupported protocol scheme ""

This formula is the default.
I think it shouldn't make a http request here.

What you expected to happen:
Start the Formula.

How to reproduce it (as minimally and precisely as possible):
-Create new system
-install Go and Ritchie-cli
-init Ritchie-cli (rit init)
-create new formula (rit create formula)
-go to ritchie-formula-local repository
-execute the make (make test-local)
-check if the new formula is available (rit --help)
-call the new formula

Environment:

  • Ritchie version (use rit --version): rit version 1.0.0-beta.13 (single)
  • Operating System: Linux - Manjaro kernel 5.6.15-1
@KelsonCarmozine KelsonCarmozine added the 🪲 bug Report a bug encountered while operating Ritchie label Jun 5, 2020
@victor-schumacher
Copy link
Contributor

victor-schumacher commented Jun 5, 2020

Hi @KelsonCarmozine !
This bug was fixed on #145 , so make sure you are using our last version,
Please download here: https://docs.ritchiecli.io/getting-started/installation/linux
and create your formula again.
Thanks for get in touch.

@KelsonCarmozine
Copy link
Author

Hi @victor-schumacher !
I reinstall using your link and the error remains.
The version now is : rit version 1.0.0-test.1 (single)
The link is correct?

@KelsonCarmozine
Copy link
Author

Hi @victor-schumacher.
I reinstall again, using the same link, and now the version return to 1.0.0-beta.13 (single)..The error remains.
I try use a friend's computer witch Ubunto and it work normally.I use the same commands in the order.
I concluded that the problem is or witch OS base in Arch or a specific combination of variables in my system.

obs: I note sure if in this case (topic close) I should continuous this issues or I need open a new.

@victor-schumacher
Copy link
Contributor

Hi @KelsonCarmozine, thanks for your colaboration.
I think the formula your are trying to execute was created with the version beta12,
you can check if your formula folder has the name like this_is_my_formula, instead of only formula.

@KelsonCarmozine
Copy link
Author

KelsonCarmozine commented Jun 8, 2020

Hi @victor-schumacher.

Create a new formula rit test test -> ritchie-formulas-local/test/test witch foder src and config.json.

The error occur even when I delete the ritchie-formulas-local folder, the tree.json in .rit/repo/local, the folder test in .rit/formulas and create a new formula witch command "rit create formula" again, using the version beta13.

ps: I install the ritchie for the first time when a open the issue, the first version a used is the beta13.
ps2: Do you like I make make a video showing all the process?

@victor-schumacher
Copy link
Contributor

Ok @KelsonCarmozine , one last thing, try to remove the bin and install again,
sudo rm -rf /usr/local/bin/rit
curl -fsSL https://commons-repo.ritchiecli.io/install_single.sh | bash

@kaduartur kaduartur added 🆘 help wanted Extra attention is needed waiting reply Waiting for an answer to a comment labels Jun 8, 2020
@kaduartur kaduartur reopened this Jun 8, 2020
@KelsonCarmozine
Copy link
Author

Hi @victor-schumacher.

I make what you say but the error don't change.

And for same reason the command "make test-local" stop to work when the last word of the formula is test(exp: "rit test test"). Witch other words the command make work normally.

The version now is test.1

@GuillaumeFalourd
Copy link
Contributor

GuillaumeFalourd commented Jun 18, 2020

Hi @KelsonCarmozine , I believe the problem is that the main Makefile file of you ritchie-formulas-local repository may have 2 formulas variables with the same name, but which are associated to different formulas. It would be necessary to remove one of them to avoid this error to occur.

This problem has been resolved in the beta.14 version, and I would also recommend to delete the ritchie-formulas-local before testing again (just to be sure everything will be ok) :)

Thank you for your contribution.

@viniciusramosdefaria
Copy link
Contributor

This error is not happening anymore, because it was fixed by using a new mechanic. Closing issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Report a bug encountered while operating Ritchie 🆘 help wanted Extra attention is needed waiting reply Waiting for an answer to a comment
Projects
None yet
Development

No branches or pull requests

5 participants