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

How do I run tests without connecting to the internet? #6

Open
Trevoke opened this issue Nov 21, 2024 · 7 comments
Open

How do I run tests without connecting to the internet? #6

Trevoke opened this issue Nov 21, 2024 · 7 comments

Comments

@Trevoke
Copy link

Trevoke commented Nov 21, 2024

This confuses me to no end:

% eask test buttercup
Adding required archives (melpa)... done ✓
Refresh archives information... done ✓
  - Skipping buttercup (20240904.2311)... already installed ✗
Running 3 specs.

Why on earth is it refreshing the archives information? How can I make it not do that?

@jcs090218
Copy link
Member

Eask needs to download buttercup before use. Without refreshing archive information (is equivalent to the function (package-refresh-contents)), Emacs doesn't know what packages and versions are available to download. 🤔

@Trevoke
Copy link
Author

Trevoke commented Nov 21, 2024 via email

@Trevoke
Copy link
Author

Trevoke commented Nov 21, 2024

For clarification, my use case is: I'd like to do TDD :)

@Trevoke
Copy link
Author

Trevoke commented Nov 21, 2024

Ok.
I don't exactly understand what's happening but:

  1. I only have gnu as a dependency
  2. when I added melpa, it stopped doing the archive refresh
  3. I think this only happens if my package depends on a recipe
  4. I don't know what that means and how to stop it

So for now I can do TDD by just adding melpa as a source in the Eask file but that seems wrong :)

@jcs090218
Copy link
Member

I've opened a PR for this, see emacs-eask/cli#284.

@jcs090218
Copy link
Member

  1. when I added melpa, it stopped doing the archive refresh

It's probably refreshed before the command tasks. 🤔

  1. I think this only happens if my package depends on a recipe

Depends on a recipe requires package-build to be installed, so it requires the melpa source.

@jcs090218
Copy link
Member

Can you try the latest version and see if that works? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants