Comments (3)
@rejeep I'm not sure. Imho such a function βfakesβ something, which doesn't exist, namely, a stateless package system. But there is no such thing. Let's face it, package.el has global state, whether we like it or nor, and we cannot complete undo state established by epl-package-install
.
Most notably, it'll activate the new package, which loads its autoloads. That cannot be undone easily.
I wonder, what you need that for, by the way. Do you plan to provide an API to use multiple Cask environments at once?
I wouldn't like that. It's bound to cause trouble, because however hard we work, the single global state of package.el will leak through our abstractions, and cause trouble. The Emacs library and package system is simply not up to handle this.
Imho, as such we shouldn't offer such a feature. We can provide an API to parse arbitrary Cask bundles, build packages, docs, whatever, but we effectively can only have a single Cask bundle active, and we can easily switch active Cask bundles.
from epl.
I'm mostly concerned about external side effects in Cask functions. For example modification of the load-path
.
Most functions in Cask now takes a bundle
as argument that defines the current Cask project. The problem is that functions operating on a bundle sometimes need to have the bundle as the "active" package.el directory, for example cask-install
.
The reason I started thinking about this is that I added a function in Cask called cask-installed-dependencies
. To be able to get a list of the installed dependencies, the directory has to be initialized (package-initialize
) and this will change the load-path
.
I wonder if each function that has side effects should do their own clean up. For example in this function, we would restore load-path
, but perhaps not care about internal package.el changes.
I guess, as you say, we cannot be perfect because that's just how package.el works and all we can do is out best. Frustrating though...
from epl.
I'm closing this for now and if I can find a better concrete use cases where this would be the best solution, I'll open up the issue again.
from epl.
Related Issues (20)
- Vagrantify :)
- Send a recipe suggestion to el-get. HOT 2
- Changing package dir initializes the default elpa dir HOT 2
- Package requirements recursively HOT 12
- Epl install file HOT 6
- Epl find available packages broken on snapshot HOT 4
- Reflux Issue 7 -- EPL Upgrade HOT 2
- No output HOT 4
- Delete package function does not update package alist HOT 5
- Invalid package requires error handling HOT 2
- Byte compilation error HOT 1
- Tag for version 0.8 has strange name HOT 2
- Support package-archive-priorities HOT 4
- (file-error "http://stable.melpa.org/packages/epl-0.8.el" "Not found") HOT 3
- Documentation on what epl adds/replaces?
- Possible conflict with built-in package.el HOT 3
- Error on epl-upgrade HOT 22
- Wrong type argument arrayp HOT 11
- Create packages from TARs and package descriptors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epl.