# Appveyor and Pkg (for Julia 0.7-alpha)

**URL:** https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835
**Category:** Internals & Design
**Tags:** package
**Created:** [June 21, 2018, 12:39am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835 "2018-06-21T00:39:00Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [June 21, 2018, 12:39am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/1 "2018-06-21T00:39:00Z")

</div>

I have trouble making sense of the logic of the Appveyor and the new package manager.  
Will the Appveyor automatically pull in the latest commit of the package, or will it try to find a released version to test?

Right now the `appveyor.yml ` says

```julia
...
test_script:
  - C:\projects\julia\bin\julia -e "Pkg.add(\"FinEtools\"); Pkg.instantiate(); Pkg.test(\"FinEtools\")"

```

which I was hoping would look at the `.toml` files from my package, and install the appropriate packages. However, when Julia runs it [fails to find](https://ci.appveyor.com/project/PetrKryslUCSD/finetools-jl/build/job/kc354j0365i5cb4d) the `Arpack` package. This package is listed in both `.toml` files as dependency.

By the way, has anyone figured out how to ask for a particular commit of the package to be tested? I can see in the source code for `Pkg.add` that it takes some keyword arguments, but I couldn’t ascertain what those were in order to request a particular release or a particular commit.

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [June 21, 2018, 5:53am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/2 "2018-06-21T05:53:20Z")

</div>

I think you can do this for a certain commit

```julia
add FinEtools#cc9a8f1
#or one of these:
#add FinEtools#be9d32de027a1046d80d04d5c48ac7f310f6c521
#add FinEtools#master

```

However, it is not clear to me what the 0.7 equivalent of this is

```julia
C:\projects\julia\bin\julia -e "Pkg.add(\"FinEtools\");"

```

I understand Pkg. will not be supported anymore at some point

```julia
C:\projects\julia\bin\julia -e "\]add FinEtools;" #this does not work....

```

Specifically I would like to do `]st` for informative purposes.

On appveyor I actually have another [error](https://ci.appveyor.com/project/kafisatz/DecisionTrees-jl/branch/master/job/vayvsny511hain39#L179) which I do not know how to resolve (what is ‘Future’?). Notably, the travis build works just fine.

---

<div class="post-metadata">

### Author: ![innerlee](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@innerlee](https://discourse.julialang.org/u/innerlee)
#### Post date: [June 21, 2018, 7:44am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/3 "2018-06-21T07:44:14Z")

</div>

pkg"add blah"?

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [June 21, 2018, 8:03am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/4 "2018-06-21T08:03:56Z")

</div>

thanks. I could not find that in the Pkg doc (latest)

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [June 21, 2018, 8:05am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/5 "2018-06-21T08:05:14Z")

</div>

> [@bernhard](#):
>
> ```julia
> julia -e "Pkg.add(\"FinEtools\");"
> 
> ```

This is now

```julia
julia -e 'import Pkg; Pkg.add("FinEtools")'

```

`Pkg` is not a standard library and needs to be imported before using it.

> I understand Pkg. will not be supported anymore at some point

Do you mean the `Pkg.whatever` API calls? Those are mostly still supported and will continue to be. We’re working on fleshing it out to cover more of the whole range of functionality available from the REPL mode.

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [June 21, 2018, 8:08am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/6 "2018-06-21T08:08:52Z")

</div>

> [@StefanKarpinski](#):
>
> Do you mean the `Pkg.whatever` API calls

Yes, I meant ‘Pkg.whatever API calls’.  
I thought these would eventually disappear.

But innerlee answered my more important question which allows me to do `pkg"st"` which I cannot do through the `Pkg.whatever` API.

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [June 21, 2018, 9:02am UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/7 "2018-06-21T09:02:28Z")

</div>

I’m a bit confused. I changed your `appveyor` script so that it would work on 0.7, tests passed, and now you changed it back?

What you are doing now is that you are adding the registered version of `FinETools`, not the one from your branch.

Edit: Ah, the PR I made perhaps doesn’t work now due to the latest changes to code loading (as you can see, things are a bit back and forth). I made a PR to update your script again. Thanks for trying all the new stuff out and sorry that things are a bit chaotic.

---

<div class="post-metadata">

### Author: ![ScottPJones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scottpjones/32/146_2.png) [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)
#### Post date: [June 21, 2018, 12:23pm UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/9 "2018-06-21T12:23:25Z")

</div>

> [@kristoffer.carlsson](#):
>
> Edit: Ah, the PR I made perhaps doesn’t work now due to the latest changes to code loading (as you can see, things are a bit back and forth). I made a PR to update your script again. Thanks for trying all the new stuff out and sorry that things are a bit chaotic.

That’s probably what has been biting me lately.  
It seems I’m changing my travis and appveyor scripts on a daily basis, trying to get them to work with Pkg3.  
(Ever since v0.7.0-DEV.5183, things have not worked consistently on nightlies)

---

<div class="post-metadata">

### Author: ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)
#### Post date: [June 21, 2018, 2:29pm UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/10 "2018-06-21T14:29:55Z")

</div>

> [@kristoffer.carlsson](#):
>
> Edit: Ah, the PR I made perhaps doesn’t work now due to the latest changes to code loading (as you can see, things are a bit back and forth). I made a PR to update your script again. Thanks for trying all the new stuff out and sorry that things are a bit chaotic.

Thank you very much. And no worries: by trying to keep up with 0.7 development I learn a lot, and I think it also helps the developers because sometimes I find where things got broken. It is all for a good cause 🙂

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [June 23, 2018, 2:30pm UTC](https://discourse.julialang.org/t/appveyor-and-pkg-for-julia-0-7-alpha/11835/11 "2018-06-23T14:30:54Z")

</div>

An addtion:  
I had to remove the bit `Pkg.develop(pwd());` on the nightly 0.7.0-alpha264.  
Otherwise, things failed for me on Travis.

The error was ‘Cannot add package with the same name or uuid as the project’  
without the `Pkg.develop` command, things are working though.
