Downloads:

4,880

Downloads of v 3.13.1:

365

Last Update:

07 May 2020

Package Maintainer(s):

Software Author(s):

  • Fred Hebert
  • Tristan Sloughter

Tags:

erlang build tools

Rebar3

3.13.1 | Updated: 07 May 2020

Downloads:

4,880

Downloads of v 3.13.1:

365

Maintainer(s):

Software Author(s):

  • Fred Hebert
  • Tristan Sloughter

Rebar3 3.13.1

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Rebar3, run the following command from the command line or from PowerShell:

>

To upgrade Rebar3, run the following command from the command line or from PowerShell:

>

To uninstall Rebar3, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade rebar3 -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade rebar3 -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure rebar3 installed
  win_chocolatey:
    name: rebar3
    state: present
    version: 3.13.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'rebar3' do
  action    :install
  version  '3.13.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: rebar3,
    Version: 3.13.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller rebar3
{
   Name     = 'rebar3'
   Ensure   = 'Present'
   Version  = '3.13.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'rebar3':
  provider => 'chocolatey',
  ensure   => '3.13.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install rebar3 version="3.13.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 07 May 2020.

Description

Rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.


tools\chocolateyInstall.ps1
$package = 'rebar3'
$version = '3.13.1'

$toolsDir = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)
Get-ChocolateyWebFile -packageName $package -fileFullPath $toolsDir/$package -url "https://github.com/erlang/$package/releases/download/$version/rebar3" -Checksum '5d2370d4f741f7b4758e7517c95fca8c4de88675878a09eead677b2e3eb4f3f5' -Checksumtype 'sha256'

Install-BinFile "rebar3" -path "$toolsDir/rebar3.cmd"
tools\chocolateyUninstall.ps1
$package = 'rebar3'
$version = '3.13.1'

#Note that this process will _not_ uninstall Erlang.
#Remove the shim file.
$toolsDir = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)
Remove-BinFile "rebar3" -path "$toolsDir/rebar3.cmd"
tools\rebar3.cmd
@echo off
@call :find_erts_dir

@set rebar_cng_dir=Rebar3
@set base_cng_dir=%ChocolateyInstall%/Lib
@set rebar_escript_path=%base_cng_dir%/%rebar_cng_dir%
for %%r in ("%rebar_escript_path%") do @(set rebar_escript_path=%%~sr)

@%erts_bin_dir%/escript.exe %rebar_escript_path%/tools/rebar3 %*
@goto :eof

:: Find the ERTS dir
:find_erts_dir
@set possible_erts_dir=%release_root_dir%\erts-%erts_vsn%
@if exist "%possible_erts_dir%" (
  call :set_erts_dir_from_default
) else (
  call :set_erts_dir_from_erl
)
@goto :eof

:: Set the ERTS dir from the passed in erts_vsn
:set_erts_dir_from_default
@set erts_dir=%possible_erts_dir%
@for %%e in ("%erts_dir%") do set erts_dir=%%~se
@set rootdir=%release_root_dir%
@for %%r in ("%rootdir%") do set rootdir=%%~sr
@goto :eof

:: Set the ERTS dir from erl
:set_erts_dir_from_erl
@for /f "delims=" %%i in ('where erl') do @(
  set erl=%%~si
)

@set dir_cmd="%erl%" -noshell -eval "io:format(\"~s\", [filename:nativename(code:root_dir())])." -s init stop
%dir_cmd% > %TEMP%/erlroot.txt 
@set /P erl_root=< %TEMP%/erlroot.txt
@for %%f in ("%erl_root%") do set erl_root=%%~sf
@set erts_dir_cmd=dir /b "%erl_root%"\erts*
%erts_dir_cmd% > %TEMP%/ertsdir.txt
@set /P erts_dir_name=< %TEMP%/ertsdir.txt
@set erts_bin_dir=%erl_root%\%erts_dir_name%\bin
@for %%e in ("%erts_bin_dir%") do set erts_bin_dir=%%~se
@goto :eof


Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Rebar3 3.9.0 536 Saturday, March 9, 2019 Approved
Rebar3 3.6.1 581 Friday, August 3, 2018 Approved
Rebar3 3.5.2 451 Tuesday, May 8, 2018 Approved
Rebar3 3.5.0 404 Wednesday, January 10, 2018 Approved
Rebar3 3.4.7 287 Wednesday, December 6, 2017 Approved
Rebar3 3.4.1 363 Friday, June 2, 2017 Approved
Rebar3 3.3.5 339 Friday, April 7, 2017 Approved
Rebar3 3.3.4 307 Thursday, February 2, 2017 Approved
Rebar3 3.3.1 362 Monday, September 26, 2016 Approved

Discussion for the Rebar3 Package

Ground Rules:

  • This discussion is only about Rebar3 and the Rebar3 package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Rebar3, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus