Re: Newtmgr moved to new repo

2017-07-10 Thread Paul LaCrosse
Tried option #2, which worked.  Thanks Chris!

On Mon, Jul 10, 2017 at 4:23 PM, Christopher Collins 
wrote:

> Hi Paul,
>
> On Mon, Jul 10, 2017 at 04:13:30PM -0400, Paul LaCrosse wrote:
> > Pauls-MacBook-Pro-2:testgoget paul$  go get mynewt.apache.org/newtmgr/.
> ..
> >
> > # cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only
> >
> > fatal: repository '
> > https://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/' not
> > found
> >
> > package mynewt.apache.org/newtmgr/nmxact/example/ble_loop
> >
> > imports mynewt.apache.org/newt/util/unixchild: exit status 1
> >
> > Download of latest newtmgr, produces error.
>
> It appears your version of the newt repo was cloned from the old apache
> git server (before Mynewt moved to github).  Using "go get" with the
> mynewt.apache.org vanity domain helps to avoid problems like this.  To
> solve this, I would either:
>
> 1. Change the newt repo remote to the github URL:
>
> cd $GOPATH/src/mynewt.apache.org/newt &&
> git remote set-url origin https://github.com/apache/
> incubator-mynewt-newt.git
>
> Or,
>
> 2. Completely remove $GOPATH/src/mynewt.apache.org and reinstall it with
> `go get mynewt.apache.org/newt/...`
>
> Thanks,
> Chris
>


Re: Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hi Paul,

On Mon, Jul 10, 2017 at 04:13:30PM -0400, Paul LaCrosse wrote:
> Pauls-MacBook-Pro-2:testgoget paul$  go get mynewt.apache.org/newtmgr/...
> 
> # cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only
> 
> fatal: repository '
> https://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/' not
> found
> 
> package mynewt.apache.org/newtmgr/nmxact/example/ble_loop
> 
> imports mynewt.apache.org/newt/util/unixchild: exit status 1
> 
> Download of latest newtmgr, produces error.

It appears your version of the newt repo was cloned from the old apache
git server (before Mynewt moved to github).  Using "go get" with the
mynewt.apache.org vanity domain helps to avoid problems like this.  To
solve this, I would either:

1. Change the newt repo remote to the github URL:

cd $GOPATH/src/mynewt.apache.org/newt &&
git remote set-url origin 
https://github.com/apache/incubator-mynewt-newt.git

Or,

2. Completely remove $GOPATH/src/mynewt.apache.org and reinstall it with
`go get mynewt.apache.org/newt/...`

Thanks,
Chris


Re: Newtmgr moved to new repo

2017-07-10 Thread Paul LaCrosse
Pauls-MacBook-Pro-2:testgoget paul$  go get mynewt.apache.org/newtmgr/...

# cd /Users/paul/dev/go/src/mynewt.apache.org/newt; git pull --ff-only

fatal: repository '
https://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/' not
found

package mynewt.apache.org/newtmgr/nmxact/example/ble_loop

imports mynewt.apache.org/newt/util/unixchild: exit status 1

Download of latest newtmgr, produces error.


On Mon, Jul 10, 2017 at 1:44 PM, Christopher Collins 
wrote:

> Hello all,
>
> The newtmgr tool location has changed:
>
> From: https://github.com/apache/mynewt-newt/tree/master/newtmgr
>   To: https://github.com/apache/mynewt-newtmgr/tree/master/newtmgr
>
> To download the latest newtmgr, use the following command:
>
> go get mynewt.apache.org/newtmgr/...
>
> The plan is to remove the "old" newtmgr from the newt repo when Mynewt
> 1.1 is released.
>
> The "new" newtmgr has improved BLE support.  BLE should now work more
> reliably on Linux and macOS.  The particulars are documented here:
> http://mynewt.apache.org/latest/newtmgr/command_list/newtmgr_conn/
>
> My preferred way to use BLE is to create a "ble" connection profile with
> an empty connstring:
>
> newtmgr conn add ble type=ble connstring=' '
>
> Then, specify the target device name on the command line each time you
> send a command:
>
> newtmgr -c ble --name nimble-bleprph echo hello
>
> Rationale:
> The reason for the move is to simplify downloading and
> building of newt and newtmgr.  The "go get" command works better with
> the "mynewt.apache.org" vanity domain when there is one application per
> repo.  Since the vanity domain requires the use of the "..." syntax in
> the `go get` command, the entire repo gets downloaded, including
> applications that weren't requested.
>
> Thanks,
> Chris
>


Newtmgr moved to new repo

2017-07-10 Thread Christopher Collins
Hello all,

The newtmgr tool location has changed:

From: https://github.com/apache/mynewt-newt/tree/master/newtmgr
  To: https://github.com/apache/mynewt-newtmgr/tree/master/newtmgr

To download the latest newtmgr, use the following command:

go get mynewt.apache.org/newtmgr/...

The plan is to remove the "old" newtmgr from the newt repo when Mynewt
1.1 is released.

The "new" newtmgr has improved BLE support.  BLE should now work more
reliably on Linux and macOS.  The particulars are documented here:
http://mynewt.apache.org/latest/newtmgr/command_list/newtmgr_conn/

My preferred way to use BLE is to create a "ble" connection profile with
an empty connstring:

newtmgr conn add ble type=ble connstring=' '

Then, specify the target device name on the command line each time you
send a command:

newtmgr -c ble --name nimble-bleprph echo hello

Rationale:
The reason for the move is to simplify downloading and
building of newt and newtmgr.  The "go get" command works better with
the "mynewt.apache.org" vanity domain when there is one application per
repo.  Since the vanity domain requires the use of the "..." syntax in
the `go get` command, the entire repo gets downloaded, including
applications that weren't requested.

Thanks,
Chris